创建c#项目 命令行dotnet run 出现下面的错误
(相关资料图)
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: “ResolvePackageAssets”任务意外失败。 [D:\project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: : 无法找到回退包文件夹“C:\Users\feng\AppData\Roaming\Godot\mono\GodotNuGe
tFallbackFolder”。 [D:\project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at ..ctor(String userPackageFolder, IEnumerable`1 fallba
ckPackageFolders) [D:\project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at (IEnumerable`1 packageFolders) [D:\
project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at (LockFile lockFile) [D:\project\Gam
eEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at ..ctor(ResolvePackageAssets task) [D:\
project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at (ResolvePackageAs
sets task, Byte[] settingsHash) [D:\project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at ..ctor(ResolvePackageAssets task) [D:\
project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at () [D:\project\GameEngine\CSharp\CS
]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at () [D:\project\GameEngine\CSharp\CShar
]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at () [D:\project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at () [
D:\project\GameEngine\CSharp\]
C:\Program Files\dotnet\sdk\\Sdks\\targets\(267,5)
: error MSB4018: at (ITaskExecutionHost taskExecutionHost
, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [D:\
project\GameEngine\CSharp\]
原来是之前用Godot游戏引擎的c#版本, 它添加的包引用, 后来删了后, 新建的c#项目找不到这个包,
把它删了 C:\Users\feng\AppData\Roaming\NuGet\config\
我直接删了掉 C:\Users\feng\AppData\Roaming\NuGet了
关键词: