The "ResolvePackageAssets" task failed unexpectedly due to max path limitation of NuGet package cache
See original GitHub issueI am using version 2.1.300-preview2-008251
of the SDK and I am getting this failure multiple times when building inside VS. Building from the command line completes successfully.
Severity Code Description Project File Line Suppression State
Error MSB4018 The "ResolvePackageAssets" task failed unexpectedly.
System.ArgumentNullException: Value cannot be null.
Parameter name: path1
at System.IO.Path.Combine(String path1, String path2)
at Microsoft.NET.Build.Tasks.ResolvePackageAssets.RaisePackageAssets[T](LockFileTarget target, Func`2 getAssets, Func`2 filter, Action`2 setup)
at Microsoft.NET.Build.Tasks.ResolvePackageAssets.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() SocialWeather C:\Users\James\.dotnet\x64\sdk\2.1.300-preview2-008251\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets 201
Failing source: https://github.com/aspnet/SignalR/commit/4b666dfa856a7600205ab488a7ad4c8facbe7f6e
Open SignalR.sln in 15.6.2 and rebuild solution for the error.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
The "ResolvePackageAssets" task failed unexpectedly
This error due to Nuget packages version compatibility different in projects(Shared project,iOS Project,Android Projects). Solution:-.
Read more >[WSL] Restore nuget packages before build if the project ...
Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. EXPECTED: We should detect that...
Read more >ResolvePackageAssets task failed
This issue is currently being investigated. The problem is that Mono's MSBuild does not currently support NuGet 5 so you cannot use .NET...
Read more >Troubleshooting NuGet Package Restore in Visual Studio
This error occurs when you attempt to build a project that contains references to one or more NuGet packages, but those packages are...
Read more >Problem with nuget not found : r/csharp
Hi, I have a VS project that I am trying to build but, when i try clean, it gives me the following error:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Code has been updated to not use the problem package. I’m not blocked anymore.
Fixed by #2210