Tôi vừa nâng cấp Visual Studio lên phiên bản mới nhất (1/30/2017). Dự án ASP.NET Core của tôi đã hoạt động trước khi nâng cấp, nhưng bây giờ tôi nhận được lỗi sau ngăn tôi lại. Có giải pháp đơn giản nào cho việc này không?Visual Studio 2017 - Không thể tải tệp hoặc lắp ráp 'System.IO.FileSystem
Severity Code Description Project File Line Suppression State
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()
Tôi gặp vấn đề tương tự sau khi nâng cấp ngay hôm nay. – jbarket
Kiểm tra chủ đề này https://github.com/dotnet/corefx/issues/16206 –
Kiểm tra app.config để chuyển hướng ràng buộc –