gpt4 book ai didi

asp.net-core - Visual Studio 2017-无法加载文件或程序集'System.IO.FileSystem

转载 作者:行者123 更新时间:2023-12-03 23:02:53 25 4
gpt4 key购买 nike

我刚刚将Visual Studio升级到最新版本(1/30/2017)。
我的ASP.NET Core项目在升级之前可以正常工作,但是现在出现以下错误使我停下来。有什么简单的解决方案吗?

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()

最佳答案

解决此问题的最简单方法是创建一个新的ASP.NET Core应用程序,检查其.csproj文件并基于该文件修改旧项目。许多事情似乎已被删除和简化,在这里列出太多内容。

关于asp.net-core - Visual Studio 2017-无法加载文件或程序集'System.IO.FileSystem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41979136/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com