Skip to content

Commit 4fc64ef

Browse files
committed
Build with the .NET 6.0 SDK
1 parent 7bf21b1 commit 4fc64ef

File tree

4 files changed

+25
-14
lines changed

4 files changed

+25
-14
lines changed

azure-pipelines.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,31 @@ stages:
5454
git config --global user.name ci
5555
git config --global user.email [email protected]
5656
displayName: Configure git commit author for testing
57+
- task: UseDotNet@2
58+
displayName: Install .NET Core 3.1 runtime
59+
inputs:
60+
packageType: runtime
61+
version: 3.1.x
5762

5863
- task: UseDotNet@2
59-
displayName: Install .NET Core 5.0.401 SDK
64+
displayName: Install .NET 5.0 SDK
6065
inputs:
61-
packageType: sdk
62-
version: 5.0.401
66+
packageType: sdk # necessary for msbuild tests to run on .NET 5 runtime
67+
version: 5.0.x
6368

6469
- task: UseDotNet@2
65-
displayName: Install .NET Core 3.1 runtime
70+
displayName: Install .NET 6.0 SDK
6671
inputs:
67-
packageType: runtime
68-
version: 3.1.x
72+
packageType: sdk
73+
version: 6.0.100
74+
6975

7076
- pwsh: |
7177
Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1
72-
& .\dotnet-install.ps1 -Architecture x86 -Version 5.0.401 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
73-
& .\dotnet-install.ps1 -Architecture x86 -Channel 3.1 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
74-
displayName: Install 32-bit .NET Core SDK 5.0.401, 3.1
78+
& .\dotnet-install.ps1 -Architecture x86 -Channel 3.1 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose -Runtime dotnet
79+
& .\dotnet-install.ps1 -Architecture x86 -Channel 5.0 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
80+
& .\dotnet-install.ps1 -Architecture x86 -Version 6.0.100 -InstallDir "C:\Program Files (x86)\dotnet\" -NoPath -Verbose
81+
displayName: Install 32-bit .NET SDK and runtimes
7582
condition: ne(variables['dotnet32'], '')
7683
7784
- script: dotnet --info
@@ -328,10 +335,15 @@ stages:
328335
packageType: runtime
329336
version: 3.1.x
330337
- task: UseDotNet@2
331-
displayName: Install .NET Core 5.0.401 SDK
338+
displayName: Install .NET 5.0 runtime
339+
inputs:
340+
packageType: runtime
341+
version: 5.0.x
342+
- task: UseDotNet@2
343+
displayName: Install .NET 6.0.100 SDK
332344
inputs:
333345
packageType: sdk
334-
version: 5.0.401
346+
version: 6.0.100
335347
- script: dotnet --info
336348
displayName: Show dotnet SDK info
337349
- bash: |

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "5.0.401",
3+
"version": "6.0.100",
44
"rollForward": "patch",
55
"allowPrerelease": false
66
}

src/Directory.Build.props

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
<LibGit2SharpNativeVersion>2.0.312</LibGit2SharpNativeVersion>
2525
</PropertyGroup>
2626
<ItemGroup>
27-
<PackageReference Include="Microsoft.Net.Compilers.Toolset" Version="3.11.0" PrivateAssets="all" />
2827
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
2928
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
3029
<PackageReference Include="CSharpIsNullAnalyzer" Version="0.1.288-beta">

src/NerdBank.GitVersioning.Tests/NerdBank.GitVersioning.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
3737
<PackageReference Include="Microsoft.Build" Version="15.1.548" ExcludeAssets="runtime" />
3838
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.1.548" ExcludeAssets="runtime" />
39-
<PackageReference Include="Microsoft.Build.Locator" Version="1.2.6" />
39+
<PackageReference Include="Microsoft.Build.Locator" Version="1.4.1" />
4040
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="4.9.0" />
4141
<PackageReference Include="Xunit.Combinatorial" Version="1.2.7" />
4242
<PackageReference Include="xunit" Version="2.4.1" />

0 commit comments

Comments
 (0)