Skip to content

Commit c2d4655

Browse files
committed
Install .NET 6 SDK during build (required for running MSBuild integration tests)
1 parent 95bc21b commit c2d4655

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ if ($env:TF_BUILD) {
44
Write-Host "##[group]Install .NET SDK"
55
}
66

7-
# Install .NET 6 runtime (requried for running tests on this platform)
8-
./build/dotnet-install.ps1 -Channel 6.0 -Runtime dotnet
7+
# Install .NET 6 SDK (required for running tests on this platform)
8+
# The MSBuild Integration tests require the SDK to be present, so just installing the runtime is not sufficient
9+
./build/dotnet-install.ps1 -Version 6.0.404
910

1011
# Install SDK and runtime as specified in global.json
1112
./build/dotnet-install.ps1 -JsonFile "$PSScriptRoot/global.json"

src/MdDocs.MSBuild.IntegrationTest/MSBuildIntegrationTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private static IEnumerable<MSBuildRuntimeInfo> MSBuildRuntimes
3131
{
3232
get
3333
{
34-
yield return new MSBuildRuntimeInfo(MSBuildRuntimeType.Core, Version.Parse("6.0.100"));
34+
yield return new MSBuildRuntimeInfo(MSBuildRuntimeType.Core, Version.Parse("6.0.400"));
3535
yield return new MSBuildRuntimeInfo(MSBuildRuntimeType.Core, Version.Parse("7.0.100"));
3636
yield return new MSBuildRuntimeInfo(MSBuildRuntimeType.Full, Version.Parse("17.0"));
3737
}

0 commit comments

Comments
 (0)