You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating to the newest version of Visual Studio on our build servers, build randomly fail due to failure to resolve SDKs.
This also happens with other SDKs, which are specified in global.json, such as Microsoft.NET.Sdk and Microsoft.Build.NoTargets.
To Reproduce
We are unable to reproduce this issue on developer machines and the error does not happen with every build run. It is an intermittent build flipper.
Exceptions (if any)
Error : Could not resolve SDK "Microsoft.NET.Sdk.Web". 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.
Further technical details
The problem started happening immediately after VS 17.12.4 was installed. We did not see this problem in version 17.10.3.
Versions & Configurations
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.12.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Program Files\Microsoft Visual Studio\2022\professional>msbuild --version
MSBuild version 17.12.12+1cce77968 for .NET Framework
17.12.12.57101
Visual Studio ships with a single SDK and in the case of 17.12, that's 9.0.100 so there was no longer a .NET 8 SDK. I'm not sure why updating your global.json to 9.0.100 didn't work as that's our recommendation (using the latest SDK even when targeting downlevel). I'd have to confirm what SDK got installed and what your global.json value was. You can try installing the 8.0 SDK on the build servers or double check your 9.0.100 configuration.
You can run dotnet --info to see what SDKs are installed and you can check the host tracing to determine how it's trying to find the SDK.
Describe the bug
After updating to the newest version of Visual Studio on our build servers, build randomly fail due to failure to resolve SDKs.
This also happens with other SDKs, which are specified in
global.json
, such asMicrosoft.NET.Sdk
andMicrosoft.Build.NoTargets
.To Reproduce
We are unable to reproduce this issue on developer machines and the error does not happen with every build run. It is an intermittent build flipper.
Exceptions (if any)
Further technical details
The problem started happening immediately after VS 17.12.4 was installed. We did not see this problem in version 17.10.3.
Versions & Configurations
NOTE: We did try updating the sdk to version 9.0.100, but the error still happens.
Windows Server 2022 (21H2)
x64
Intel(R) Xeon(R) Gold 6238R CPU @ 2.20GHz, 2195 Mhz, 28 Core(s), 56 Logical Processor(s)
The text was updated successfully, but these errors were encountered: