简体   繁体   English

如何使用 bat 文件在 Visual Studio 中设置 DLL 文件的路径?

[英]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.

相关问题 如何在 Visual Studio 2010 中构建不依赖于 .NET 4 SDK DLL/库文件的可执行文件? - How do I build an executable file in visual studio 2010 that doesn't rely on the .NET 4 SDK DLL/Library files? 如何设置Visual Studio 2010项目以为Slickedit 17构建64位扩展名dll? - How do I set up a Visual Studio 2010 project for building a 64 bit extension dll for Slickedit 17? 如何在 Visual Studio C++ 中使用第三方 DLL 文件? - How do I use a third-party DLL file in Visual Studio C++? 如何使用Visual Studio在.Net C ++项目上添加DLL作为参考 - How do I add a DLL as a reference on .Net C++ Project using Visual Studio 在Visual Studio '13中,我该怎么做,以便可以在exe的相对子文件夹中包含dll文件? - In visual studio '13 how do I make it so I can include dll files in a relative sub folder of my exe? 如何在 Visual Studio 中设置依赖 DLL 路径? - How to set dependency DLL paths in Visual Studio? 如何在Visual Studio中的DLL上设置断点? - How to set a breakpoint on a DLL in Visual Studio? 如何确保在修改.h文件时,使用Visual Studio 2008在Release版本中自动编译包括它的.cc文件? - How do I make sure that when a .h file is modified, the .cc files including it are compiled automatically in a Release build using Visual Studio 2008? 如何使Visual Studio 2015识别新包含的标头的文件路径? - How do I get Visual Studio 2015 to recognise the file path of a newly included header? 如何在 Visual Studio 项目中“单独”运行 C++ 文件而不受其他文件的影响? - How do I run a C++ file “by itself” in a Visual Studio project without the influence of other files?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM