question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The "ResolvePackageAssets" task failed unexpectedly due to max path limitation of NuGet package cache

See original GitHub issue

I 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.

buildlogs.zip

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
JamesNKcommented, Mar 16, 2018

Is that enough to consider that you are at least unblocked from working on that issue?

Code has been updated to not use the problem package. I’m not blocked anymore.

0reactions
nguerreracommented, May 4, 2018

Fixed by #2210

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found