Skip to content

Commit 318bdde

Browse files
authored
Update to .NET 10 SDK (#67)
Update to the 10 SDK RC. This is a pre-requisite to testing with the new NuGet package pruning features. Also updated the tests so they test all supported versions of MSBuild as well.
1 parent fe5ac71 commit 318bdde

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<PackageVersion Include="FluentAssertions" Version="7.2.0" />
1212
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
1313
<PackageVersion Include="MSBuild.ProjectCreation" Version="15.0.0" />
14+
<PackageVersion Include="Polyfill" Version="8.8.1" />
1415
<PackageVersion Include="xunit.v3" Version="3.0.1" />
1516
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.4" />
1617
</ItemGroup>

azure-pipelines.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@ stages:
2222
inputs:
2323
packageType: sdk
2424
useGlobalJson: true
25-
displayName: 'Use .NET SDK'
25+
displayName: 'Use .NET SDK (global.json)'
26+
27+
# Install SDKs needed for testing
28+
- task: UseDotNet@2
29+
inputs:
30+
packageType: sdk
31+
version: '8.x'
32+
displayName: 'Use .NET SDK (8.x)'
33+
34+
- task: UseDotNet@2
35+
inputs:
36+
packageType: sdk
37+
version: '9.x'
38+
displayName: 'Use .NET SDK (9.x)'
2639

2740
- script: dotnet tool restore
2841
displayName: Install dotnet tools
@@ -59,7 +72,7 @@ stages:
5972
inputs:
6073
packageType: sdk
6174
useGlobalJson: true
62-
displayName: 'Use .NET SDK'
75+
displayName: 'Use .NET SDK (global.json)'
6376

6477
- script: dotnet tool restore
6578
displayName: Install dotnet tools

global.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"sdk": {
3-
"version": "9.0.100",
4-
"rollForward": "major"
3+
"version": "10.0.100-rc.1.25451.107",
4+
"rollForward": "minor",
5+
"allowPrerelease": true
56
},
67
"msbuild-sdks": {
78
"Microsoft.Build.NoTargets": "3.7.134",

tests/DotNet.ReproducibleBuilds.Tests/DotNet.ReproducibleBuilds.Tests.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFrameworks>net472;net8.0;net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7+
<LangVersion>latest</LangVersion>
8+
<OutputType>Exe</OutputType>
79

810
<IsTestProject>true</IsTestProject>
911
</PropertyGroup>
@@ -21,6 +23,10 @@
2123
<PrivateAssets>all</PrivateAssets>
2224
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2325
</PackageReference>
26+
<PackageReference Include="Polyfill">
27+
<PrivateAssets>all</PrivateAssets>
28+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
29+
</PackageReference>
2430
</ItemGroup>
2531

2632
<ItemGroup>

0 commit comments

Comments
 (0)