Skip to content

Build task integration tests started failing #80991

@jjonescz

Description

@jjonescz

Presumably caused by CI machine update.

Failures are like:

[xUnit.net 00:00:02.04]     Microsoft.CodeAnalysis.BuildTasks.Sdk.UnitTests.IntegrationTests.SdkBuild_Csc(useSharedCompilation: True) [FAIL]
[xUnit.net 00:00:02.04]       Assert.Equal() Failure: Values differ
[xUnit.net 00:00:02.04]       Expected: 0
[xUnit.net 00:00:02.04]       Actual:   1
[xUnit.net 00:00:02.04]       Stack Trace:
[xUnit.net 00:00:02.04]         /_/src/Compilers/Core/MSBuildTaskTests/TestUtilities/IntegrationTestBase.cs(148,0): at Microsoft.CodeAnalysis.BuildTasks.UnitTests.IntegrationTestBase.SdkBuild_Csc(Boolean useSharedCompilation)
[xUnit.net 00:00:02.04]       Output:
[xUnit.net 00:00:02.04]         MSBuild version 17.14.19+164abd434 for .NET Framework
[xUnit.net 00:00:02.04]         Build started 11/3/2025 10:11:21 AM.
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]              0>C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error : Could not resolve SDK "Microsoft.NET.Sdk". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
[xUnit.net 00:00:02.04]         C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error :   Unable to locate the .NET SDK. Check that it is installed, your PATH is configured for the correct architecture, and that the version specified in global.json (if any) matches the installed version.
[xUnit.net 00:00:02.04]         C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error :   The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json.
[xUnit.net 00:00:02.04]         C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error :   MSB4276: The default SDK resolver failed to resolve SDK "Microsoft.NET.Sdk" because directory "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\Sdk" did not exist.
[xUnit.net 00:00:02.04]              1>Project "C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj" on node 1 (Restore target(s)).
[xUnit.net 00:00:02.04]              1>C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
[xUnit.net 00:00:02.04]              1>Done Building Project "C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj" (Restore target(s)) -- FAILED.
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]         Build FAILED.
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]                  C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error : Could not resolve SDK "Microsoft.NET.Sdk". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
[xUnit.net 00:00:02.04]                C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error :   Unable to locate the .NET SDK. Check that it is installed, your PATH is configured for the correct architecture, and that the version specified in global.json (if any) matches the installed version.
[xUnit.net 00:00:02.04]                C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error :   The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json.
[xUnit.net 00:00:02.04]                C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error :   MSB4276: The default SDK resolver failed to resolve SDK "Microsoft.NET.Sdk" because directory "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\Sdk" did not exist.
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]                "C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj" (Restore target) (1) ->
[xUnit.net 00:00:02.04]                  C:\h\w\AA6B097F\t\RoslynTests\720fc62e-72f2-4345-a3eb-3aae50bc799d\Test.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]             0 Warning(s)
[xUnit.net 00:00:02.04]             2 Error(s)
[xUnit.net 00:00:02.04]         
[xUnit.net 00:00:02.04]         Time Elapsed 00:00:00.07

Example: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1191716&view=ms.vss-test-web.build-test-results-tab

This issue will be used to skip the tests temporarily.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions