Update SDK to latest main build - #68086
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the repository-pinned .NET SDK/toolset version (via global.json) to a newer VMR-produced build, ensuring local builds and repo tooling use the intended SDK.
Changes:
- Bump
sdk.versionto11.0.100-rc.1.26378.120. - Bump
tools.dotnetto the same SDK version to keep tool acquisition consistent.
|
May have just needed the full VMR update: #68090 appears to be working EDIT: Scratch that, that PR only updates to an SDK from July 9 |
|
The build failure here might be linked to NuGet/NuGet.Client#7531 |
|
I Arcade should do |
|
@copilot Try to reproduce the build error here:
After you reproduce this error, find tools/Workarounds.targets from Arcade in the nuget cache, and make the same change as in dotnet/arcade#17227. After that, try to build again and validate if the build error goes away. |
…spec token Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Reproduced the error, applied the Arcade PR #17227 fix to the NuGet cache, and validated. The Arcade fix alone is not sufficient here. Root cause: The Arcade PR #17227 fix (adding Added a workaround in |
Fixes error NU1510: Warning As Error: PackageReference Microsoft.Extensions.Hosting will not be pruned. This package is automatically available and does not need to be referenced explicitly. Remove the PackageReference item.
|
@copilot Some OpenAPI tests are failing. Investigate that. |
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Investigated the failing OpenAPI tests. The root cause is that the new SDK ( Partial fix committed: In
However, there is a second failure that remains unresolved: |
|
@copilot NuGet 7531 doesn't seem relevant. |
Co-authored-by: Youssef1313 <31348972+Youssef1313@users.noreply.github.com>
Agreed — I've updated the comments in BaseCommand.cs to remove the incorrect NuGet 7531 attribution (commit |
|
@copilot Investigate what exactly has changed, and where (VSTest? SDK? MSBuild?) |
The change is in the .NET SDK ( Root cause chain:
Why the old SDK was fine: With the old SDK ( The fix in |
|
@baronfel @rainersigwald Can you please help here? |
|
cc @JanProvaznik potential interesting MSBuild Server interaction if you can take a look |
|
I dug into the retained Helix logs and reproduced this with the exact SDK payload. The Copilot comment has the immediate symptom right (a child process inherits bad MSBuild environment variables), but the attribution to What CI shows
Actual failure chain
Why this is not the MSBuild serverThe failing Helix command is I also ran these controls with SDK
The child-process environment cleanup previously tried in this PR only masks the first failure. The later in-process Recommended fixUpgrade |
This was introduced in microsoft/MSBuildLocator#360. I'm not sure if it's legitimate or false positive, but we have had everything working normally, I think. Disabling with |
|
It's a legit problem category but that's fine I suspect. The danger would be if there's a breaking change in |
This PR updates .NET to latest build from VMR.