错误信息:
- Error:
- An assembly specified in the application dependencies manifest (xxxxx.json) was not found:
- package: ‘Microsoft.ApplicationInsights.AspNetCore’, version: ‘2.1.1’
- path: ‘lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll’
- This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
- aspnetcore-store-2.0.0-linux-x64.xml;aspnetcore-store-2.0.0-osx-x64.xml;aspnetcore-store-2.0.0-win7-x64.xml;aspnetcore-store-2.0.0-win7-x86.xml
解决方案:
- 项目文件 ******.csproj 添加如下代码后重新发布即可
- <PropertyGroup>
- <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
- </PropertyGroup>
版权声明:本文为zhongguowangzhan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。