.NET Core自包含发布不起作用

时间:2018-01-08 03:27:52

标签: .net-core

我正在osx 10.12上创建一个webapi项目并发布到linux-64:

$dotnet publish -c Release -r linux-x64

当我在linux服务器(debian9)上运行./dotnet时,它会向我抛出错误:

$./dotnet

Error:

An assembly specified in the application dependencies manifest (dotnet.deps.json) was not found:

    package: 'Microsoft.ApplicationInsights.AspNetCore', version: '2.1.1'

    path: 'lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll'

我使用的是dotnet core 2.1.3:

$ dotnet --version
2.1.3

0 个答案:

没有答案