[英]How do I set the path to DLL files in Visual Studio using bat file?
I have a bat(SetPath.bat) file which set the paths of the exe's dll dependency.我有一个 bat(SetPath.bat) 文件,它设置了 exe 的 dll 依赖项的路径。 I know that one can add individual path variables in VS proj properties->Debugging->Environment.
我知道可以在 VS proj properties->Debugging->Environment 中添加单独的路径变量。 But I want to avoid duplication.
但我想避免重复。 Is there any way I can refer to SetPath.bat in VS proj settings?
有什么方法可以在 VS proj 设置中引用 SetPath.bat 吗? OR any other solution that satisfies the intention of having single source of path dependency to run the exe inside and outside visual studio?
或者任何其他满足单一路径依赖源以在 Visual Studio 内外运行 exe 的意图的解决方案?
PS: I use the bat file to call the exe outside visual studio. PS:我使用bat文件在visual studio之外调用exe。
The "single source" might be achieved by defining the ->Debugging->Environment properties in a single .vsprops
file, and adding that to your projects, “单一来源”可以通过在单个
.vsprops
文件中定义 ->Debugging->Environment 属性并将其添加到您的项目中来实现,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.