-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from allegro/feature/v2-net8-support
feat: refactor Sdk, make compatible with .NET 8 and CPM
- Loading branch information
Showing
42 changed files
with
935 additions
and
218 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
.idea/ | ||
.ionide/ | ||
App_Data/ | ||
artifacts/ | ||
packages/ | ||
package/ | ||
obj/ | ||
bin/ | ||
build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,22 @@ | ||
<Project> | ||
|
||
<PropertyGroup Label="Target Platforms" > | ||
<TargetFramework>net6.0</TargetFramework> | ||
</PropertyGroup> | ||
<PropertyGroup Label="NuGet Properties"> | ||
<Authors>Allegro</Authors> | ||
<Company>Allegro</Company> | ||
<Copyright>© Allegro. All rights reserved.</Copyright> | ||
<Description>$(MSBuildProjectName)</Description> | ||
<Tags>Allegro</Tags> | ||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<UseArtifactsOutput>true</UseArtifactsOutput> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="Project Settings" > | ||
<Platforms>AnyCPU</Platforms> | ||
<TargetPlatform>AnyCPU</TargetPlatform> | ||
<ErrorReport>prompt</ErrorReport> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<WarningsAsErrors /> | ||
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
<LangVersion>latest</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>disable</ImplicitUsings> | ||
<EnableDefaultNoneItems>false</EnableDefaultNoneItems> | ||
<NoWarn>$(NoWarn);NU5128;SA0001</NoWarn> | ||
<RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)$(PackageReadmeFile)" Pack="true" PackagePath="" /> | ||
<None Include="$(MSBuildThisFileDirectory)$(PackageLicenseFile)" Pack="true" PackagePath="" /> | ||
<!-- <None Include="$(MSBuildThisFileDirectory)$(PackageIconPath)" Pack="true" PackagePath="" Visible="false" /> --> | ||
<!-- <None Include="$(MSBuildThisFileDirectory)CHANGELOG.md" Pack="true" PackagePath=""/> --> | ||
</ItemGroup> | ||
|
||
<PropertyGroup Label="Build Output" > | ||
<BaseOutputPath>$(MSBuildThisFileDirectory)\bin\$(MSBuildProjectName)</BaseOutputPath> | ||
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath> | ||
<PackageOutputPath>$(MSBuildThisFileDirectory)\nuget</PackageOutputPath> | ||
<DocumentationFileValue>$(MSBuildThisFileDirectory)\bin\$(MSBuildProjectName)\$(Configuration)\$(TargetFramework)\$(MSBuildProjectName).xml</DocumentationFileValue> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Label="NuGet Properties"> | ||
<Authors>Allegro</Authors> | ||
<Company>Allegro</Company> | ||
<Copyright>© Allegro. All rights reserved.</Copyright> | ||
<Description>$(MSBuildProjectName)</Description> | ||
<Tags>Allegro</Tags> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,3 @@ | ||
<Project> | ||
<Sdk Name="Microsoft.Build.CentralPackageVersions" /> | ||
|
||
<ItemGroup Condition="'$(IsPackable)' == 'true'"> | ||
<None Include="Sdk\**" | ||
Pack="true" | ||
PackagePath="Sdk\" /> | ||
<None Include="$(PackageIconPath)" | ||
Pack="true" | ||
PackagePath="\" | ||
Visible="false" /> | ||
</ItemGroup> | ||
<!-- Empty file prevents accidental inclusion of files from directories above --> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<!-- Enable central package management with transient pinning --> | ||
<!-- https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management --> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="coverlet.collector" Version="6.0.0"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageVersion> | ||
<PackageVersion Include="FluentAssertions" Version="6.12.0" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageVersion Include="xunit" Version="2.6.5" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageVersion> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{ | ||
"sdk": { | ||
"version": "6.0.400", | ||
"version": "8.0.100", | ||
"rollForward": "latestFeature" | ||
}, | ||
"msbuild-sdks": { | ||
"Microsoft.Build.CentralPackageVersions": "2.1.3", | ||
"Microsoft.Build.NoTargets": "3.5.6" | ||
"Microsoft.Build.NoTargets": "3.7.56" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | ||
</packageSources> | ||
</configuration> |
30 changes: 30 additions & 0 deletions
30
src/Allegro.DotnetSdk.Tests/Allegro.DotnetSdk.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<IsPackable>false</IsPackable> | ||
<IsTestProject>true</IsTestProject> | ||
<DefaultItemExcludes>$(DefaultItemExcludes);projects/**</DefaultItemExcludes> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="Xunit" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="coverlet.collector"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
<PackageReference Include="FluentAssertions" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" /> | ||
<PackageReference Include="xunit" /> | ||
<PackageReference Include="xunit.runner.visualstudio"> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
<PrivateAssets>all</PrivateAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.