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

  • Post author:
  • Post category:其他


错误信息:

  1. Error:
  2. An assembly specified in the application dependencies manifest (xxxxx.json) was not found:
  3. package: ‘Microsoft.ApplicationInsights.AspNetCore’, version: ‘2.1.1’
  4. path: ‘lib/netstandard1.6/Microsoft.ApplicationInsights.AspNetCore.dll’
  5. This assembly was expected to be in the local runtime store as the application was published using the following target manifest files:
  6. 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

解决方案:

  1. 项目文件  ******.csproj  添加如下代码后重新发布即可
  2. <PropertyGroup>
  3. <PublishWithAspNetCoreTargetManifest>false</PublishWithAspNetCoreTargetManifest>
  4. </PropertyGroup>



版权声明:本文为zhongguowangzhan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。