从绝对更改C#的.dll引用相对 [英] Changing C# .dll references from absolute to relative
本文介绍了从绝对更改C#的.dll引用相对的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经编译我的项目,我的一些项目增加的.dll有绝对引用。当我尝试另一台机器上运行我的项目,它看起来从原来的项目路径.dll文件。
I have compiled my project and some of my project's added .dlls have absolute references. When I try to run my project on another machine, it looks for the .dlls from the original project path.
我怎样才能使项目认准的.DLL使用相对路径?
How can I make the project look for the .dlls using a relative path?
推荐答案
编辑 .csproj的
文件并更改< HintPath方式>
从相对路径绝对路径元素
Edit the .csproj
file and change the <HintPath>
elements from absolute paths to relative paths.
这篇关于从绝对更改C#的.dll引用相对的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文