如何在 Visual Studio 中设置路径? [英] How do I set a path in Visual Studio?
本文介绍了如何在 Visual Studio 中设置路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为要在 Visual Studio 中单独搜索特定项目的 DLL 文件设置路径?
How do I set a path for DLL files to be searched in Visual Studio for a particular project alone?
现在我将它设置在环境 path
变量中,但我想更好地控制它.
Now I am setting it in the environment path
variable, but I would like better control over this.
推荐答案
您有几个选择:
- 您可以将 DLL 的路径添加到工具">选项">项目和解决方案">VC++ 目录"下的可执行文件"设置(但仅用于构建、执行或调试 此处)
- 您可以将它们添加到全局 PATH 环境变量中
- 您可以使用我描述的批处理文件启动 Visual Studio 此处 并操纵该路径中的路径
- 您可以将 DLL 复制到可执行文件的目录中 :-)
- You can add the path to the DLLs to the Executable files settings under Tools > Options > Projects and Solutions > VC++ Directories (but only for building, for executing or debugging here)
- You can add them in your global PATH environment variable
- You can start Visual Studio using a batch file as I described here and manipulate the path in that one
- You can copy the DLLs into the executable file's directory :-)
这篇关于如何在 Visual Studio 中设置路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文