请帮助解决问题,
我有一个项目,目标框架是netcoreapp2.1。它在我的开发人员计算机上正常运行,但在目标Ubuntu 计算机上出现以下异常而失败:
An assembly specified in the application dependencies manifest (CloudTester.Launcher.Service.deps.json) was not found:
package: 'Microsoft.AspNetCore.Antiforgery', version: '2.1.1'
path: 'lib/netstandard2.0/Microsoft.AspNetCore.Antiforgery.dll'
在我的开发人员计算机上,我有以下内容
.NET Core SDKs installed:
2.0.3 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.403 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
在ubuntu上,我有以下内容:
.NET Core SDKs installed:
No SDKs were found.
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.0.9 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
问题似乎出在我的开发人员机器上
路径:“ lib / netstandard2.0 / Microsoft.AspNetCore.Antiforgery.dll”指向SDK文件夹,该dll存在,但我不想在目标计算机上安装SDK!
请帮助了解正在发生的事情以及如何解决问题
亚历山大