sdk: The "ResolvePackageAssets" task failed unexpectedly due to max path limitation of NuGet package cache
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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (15 by maintainers)
Code has been updated to not use the problem package. I’m not blocked anymore.