System.IO.DirectoryNotFoundException: Could not find a part of the path during Restore #9844
Labels
Functionality:Restore
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Type:Bug
Details about Problem
NuGet product used: MSBuild restore
VS version : VS2019 16.5.5
OS version: Windows Server 2016 1607 (14393.3750)
Worked before? Possibly, using VS2019 16.4.0
The restore is running as part of a Build Definition in a build step (Azure DevOps Server/on premise agent).
The System.IO.DirectoryNotFoundException error seems to occur (more) frequently after having recently updated to VS2019 16.5.5 (it is not entirely clear if this also occurred with VS2019 16.4.0, but that is what we were using before)
Unfortunately it is not 100% reproducable.
#7341 and #7908 seem to describe similar occurrences of this issue (but then it only seemed to happen on linux/mac machines?). We have a similar issue, but specifically on Windows machines.
NuGet/NuGet.Client#2774 also mentions that this problem occurrence might be related to the amount of projects being restored in the solution, but reproducing it also seemed to be difficult there.
Detailed repro steps so we can see the same problem
a solution with 218 projects in it (C++ vcxproj, C# csproj (.NET Framework) and some dotnet core projects), plus several projects using the Microsoft.Build.NoTargets Sdk and a company private MSBuild Sdk.
run MSBuild /t:restore on the solution
Verbose Logs
The text was updated successfully, but these errors were encountered: