在我的一些 Visual C++ 项目文件中,我想指定 规则文件使用环境变量或宏。
我尝试使用文本编辑器编辑 ToolFile 元素:
<ToolFile
RelativePath="$(SolutionDir)\build\tao_idl.rules"
/>
但 Visual Studio 抱怨它找不到 C:\Path\to\ProjectFile\$(SolutionDir)\build\tao_idl.rules 所以看起来它没有扩展宏。
如果我使用 $(VAR) 或 %VAR% 语法尝试环境变量,也会发生同样的情况。
注意:使用 svn:externals 属性将项目文件拉入其他几个 SVN 存储库,但并非所有拉取该项目的存储库都使用标准目录结构。
这可能吗?
In some of my Visual C++ project files I would like to specify the path to a rule file using an environment variable or macro.
I have tried editing the ToolFile element with a text editor:
<ToolFile
RelativePath="$(SolutionDir)\build\tao_idl.rules"
/>
But Visual Studio complains that it can't find C:\Path\to\ProjectFile\$(SolutionDir)\build\tao_idl.rules so it looks like it's not expanding the macro.
The same thing happens if I try an environment variable, using either the $(VAR) or %VAR% syntax.
NOTE: The project file is pulled into several other SVN repositories by using the svn:externals property, and not all the repositories that pull this project in use a standard directory structure.
Is this possible?
发布评论