我要发布的.NET 2.0的核心项目在Windows 10 ubuntu16.04:未找到“Microsoft.ApplicationInsights.AspNetCore”
dotnet build
dotnet publish -c Release -r ubuntu.16.04-x64
构建和pulish项目并运行后,它在Ubuntu中,我看到这个错误:
Error: assembly specified in the dependencies manifest was not found ‘Microsoft.ApplicationInsights.AspNetCore’, version: 'x.x', path: ‘lib/netstandard1.3/Microsoft.ApplicationInsights.AspNetCore.dll’
我还测试了这款解决方案:
<PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
但没有解决:(
虽然我没有在.NET的核心这个问题1
您是否尝试过运行'dotnet restore'以便下载'NuGet'依赖项? –
是的,我尝试了,但我得到了同样的错误... 此文件(Microsoft.ApplicationInsights.AspNetCore.dll)存在于发布文件夹中,但我在ubuntu16.04中有错误... –