如何在Visual Studio中设置路径? [英] How do I set a path in Visual Studio?

查看:299
本文介绍了如何在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 ++目录"下的可执行文件"设置中(但仅用于构建,执行或调试在这里并在其中操作路径
  • 您可以将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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆