错误:找不到依赖清单中指定的程序集.

编程入门 行业动态 更新时间:2024-10-27 22:34:37
本文介绍了错误:找不到依赖清单中指定的程序集.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我尝试部署控制台核心应用程序时,出现错误:

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

错误:找不到依赖项清单中指定的程序集-程序包:'microsoft.aspnetcore.hosting.abstractions',版本:'1.0.0',路径:'lib/netstandard1.3/Microsoft.AspNetCore.Hosting .Abstractions.dll'

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'

我可以看到在lib/netstandard1.3/Microsoft.AspNetCore.Hosting.Abstractions.dll中存在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?

推荐答案

如果我们使用的是TFS 2013,则解决方法是创建一个文件夹并在该文件夹中添加所有必需的nuget程序包.

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.

将该文件夹复制到必须部署该文件夹的服务器,然后复制项目的所有dll.

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

还要在以下变量中更改.runtimeconfig.dev.json文件中的路径.

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

"additionalProbingPaths": [ "<nugetfolderpath>" ]

请确保在路径中使用两个正斜杠.例如:C:\ ProjectName \ NugetFolder

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

更多推荐

错误:找不到依赖清单中指定的程序集.

本文发布于:2023-11-13 10:09:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584098.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   清单   错误   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!