【发布时间】:2017-09-24 18:14:59
【问题描述】:
我想在 windows 10 中为 ubuntu16.04 发布 .net core 2.0 项目:
dotnet 构建
dotnet publish -c Release -r ubuntu.16.04-x64
在构建和发布项目并在 ubuntu 上运行它之后,我看到了这个错误:
错误:未找到依赖项清单中指定的程序集 'Microsoft.ApplicationInsights.AspNetCore',版本:'x.x',路径: ‘lib/netstandard1.3/Microsoft.ApplicationInsights.AspNetCore.dll’
我也测试了这个解决方案:
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
但没有解决:(
虽然我在 .net core 1 中没有这个问题
【问题讨论】:
-
您是否尝试过运行
dotnet restore以便下载NuGet依赖项? -
是的,我试过了,但我得到了同样的错误......这个文件(Microsoft.ApplicationInsights.AspNetCore.dll)存在于发布文件夹中,但我在ubuntu16.04中有错误......
-
这里有同样的问题。你解决了这个问题吗?
标签: c# .net ubuntu-16.04 asp.net-core-2.0