Skip to content

Nuget Restore failure? #2883

@JakeRadMSFT

Description

@JakeRadMSFT

I'm getting nuget restore failures but not really sure how to fix?

Image

2026-03-16 12:22:44.955 [error] /Users/jakerad/dev/tools/ref/dotnet-project-system/dotnet-project-system-vscode/src/Microsoft.ProjectSystem.Managed.VSCode.Services/Microsoft.ProjectSystem.Managed.VSCode.Services.csproj : error MSB4242: SDK Resolver Failure: "The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located. Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. System.IO.FileLoadException: Could not load file or assembly 'NuGet.Packaging, Version=7.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Access is denied.
2026-03-16 12:23:02.191 [error] /Users/jakerad/dev/tools/ref/dotnet-project-system/dotnet-project-system-vscode/src/Microsoft.TemplateEngine.VSCode/Microsoft.TemplateEngine.VSCode.csproj : error MSB4014: The build stopped unexpectedly because of an internal failure.
2026-03-16 12:23:02.191 [error] /Users/jakerad/dev/tools/ref/dotnet-project-system/dotnet-project-system-vscode/src/Microsoft.TemplateEngine.VSCode/Microsoft.TemplateEngine.VSCode.csproj : error MSB4014: Microsoft.Build.BackEnd.SdkResolution.SdkResolverException: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located. Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. System.IO.FileLoadException: Could not load file or assembly 'N
2026-03-16 12:23:02.192 [info] uGet.Packaging, Version=7.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Access is denied.

Metadata

Metadata

Assignees

Labels

Bug Bash CandidateIssue discovered in current RC, to be considered for endgame fixarea-project-cpsbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions