The "ResolvePackageDependencies" task failed unexpectedly. #826

Closed
opened 2025-08-09 17:17:49 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @JordanMarr on 4/17/2017

After running "yo aspnetcore-spa" and creating an Aurelia (or Angular) .csproj for VS 2017, I get this error message immediately upon opening the project in VS.

Full error:
MSB4018 The "ResolvePackageDependencies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.NET.Build.Tasks.LockFileCache.LoadLockFile(String path)
at Microsoft.NET.Build.Tasks.LockFileCache.GetLockFile(String path)
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.get_LockFile()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ReadProjectFileDependencies()
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore()
at Microsoft.NET.Build.Tasks.TaskBase.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

*Originally created by @JordanMarr on 4/17/2017* After running "yo aspnetcore-spa" and creating an Aurelia (or Angular) .csproj for VS 2017, I get this error message immediately upon opening the project in VS. Full error: MSB4018 The "ResolvePackageDependencies" task failed unexpectedly. System.IO.FileNotFoundException: Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. File name: 'System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at Microsoft.NET.Build.Tasks.LockFileCache.LoadLockFile(String path) at Microsoft.NET.Build.Tasks.LockFileCache.GetLockFile(String path) at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.get_LockFile() at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ReadProjectFileDependencies() at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.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()
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#826
No description provided.