【发布时间】:2018-03-11 13:03:09
【问题描述】:
我正在发布 ASP.NET Core 2 应用程序并看到以下错误。
Error:
An assembly specified in the application dependencies manifest (MyApp.deps.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
我在开发环境中没有看到这个错误。所以不确定出了什么问题。有关如何解决此问题的任何想法?
更新
我安装了 SDK(我只安装了运行时),一切都开始工作了。不确定这是否是最好的解决方案。
【问题讨论】:
标签: asp.net-core asp.net-core-2.0