Skip to content

[Bug]: VS2022: Random NU1301 error on restore packages #12032

@ChristianHaefner

Description

@ChristianHaefner

NuGet Product Used

MSBuild.exe

Product Version

Version 17.2.1+52cd2da31

Worked before?

Version 16.11.2+f32259642

Impact

I'm unable to use this version

Repro Steps & Context

Currently we move from VS2019 16.11.x to VS2022 17.2.x. When running a pipeline on a build agent (ADOS 2020 On-Prem and VS2022 17.2.x) we face a NU1301 randomly, but frequent in always different solutions/projects:

##[error]xxx\xxx.csproj(0,0): Error NU1301: Fehler beim Überprüfen des Stammverzeichnisses der lokalen Quelle "https://packages.repo.xxx.de/artifactory/api/nuget/nuget-powershellgallery-proxy/". 
1167>c:\tb\1\s\xxx\xxx.csproj : error NU1301: Fehler beim Überprüfen des Stammverzeichnisses der lokalen Quelle "https://packages.repo.xxx.de/artifactory/api/nuget/nuget-powershellgallery-proxy/". [c:\tb\1\s\xxx\subsystemxxx.sln]

Corresponding translation for the error message above should be Failed to verify the root directory of local source. The error also occurs randomly with another package URI https://packages.repo.xxx.de/artifactory/api/nuget/nuget-thirdparty-repo/.

Unfortunately I haven't been able to get a verbose log with this error until now. Also we don't see this kind of error at all on our build agents with VS2019 16.11.x.

Questions:

We are also using Jfrog Artifactory 7.41.7 as proxy for some official NuGet package sources.

Any help is very appreciated, since the issue blocks us to move to VS2022, because of the frequent build breaks.

Verbose Logs

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions