我正在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