Error: assembly specified in the dependencies manifest was not found.

﹥>﹥吖頭↗ 提交于 2019-12-23 21:18:51

问题


When I try to deploy the console core app, I'm getting the error:

Error: assembly specified in the dependencies manifest was not found -- package: 'microsoft.aspnetcore.hosting.abstractions', version: '1.0.0', path: 'lib/netstandard1.3/Microsoft.AspNetCore.Hosting.Abstractions.dll'

I can see that Microsoft.AspNetCore.Hosting.Abstractions.dll exists in lib/netstandard1.3/Microsoft.AspNetCore.Hosting.Abstractions.dll. Is there a way to get the path?


回答1:


If we are using TFS 2013, then the work around was to create a folder and add all the nuget packages required in the folder.

Copy that folder to the server where it has to be deployed and copy all the dlls of the project.

Also change the path in .runtimeconfig.dev.json file in the below variable.

  "additionalProbingPaths": [
  "<nugetfolderpath>"
  ]

Make sure to use two forward slashes in the path. ex: C:\ProjectName\NugetFolder



来源:https://stackoverflow.com/questions/44178186/error-assembly-specified-in-the-dependencies-manifest-was-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!