Skip to content

[Bug]: Make static restore graph evaluation long path aware #12121

@zivkan

Description

@zivkan

NuGet Product Used

dotnet.exe, MSBuild.exe

Product Version

all versions since static restore added

Worked before?

No response

Impact

It's more difficult to complete my work

Repro Steps & Context

Use the NUGET_PACKAGES environment variable, or globalPackagesFolder config in a nuget.config file to set the GPF to a path of around 200 characters long. Then, restore a project with msbuild -t:restore -p:RestoreUseStaticGraphEvaluation=true from a Developer PowerShell. Make sure the registry/group policy setting for long paths is enabled, and this restore will fail. But if you remove -p:RestoreUseStaticGraphEvaluation=true from the arguments, it will work.

Verbose Logs

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions