【发布时间】:2011-07-01 17:52:01
【问题描述】:
我正在尝试使用 nmake 调用 MSTest
TEST="%VS90COMNTOOLS%..\IDE\MSTest.exe"
test:
$(TEST) /testcontainer:Test.dll
当我运行 nmake 时,我得到了:
$ nmake test
'C:\Program' is not recognized as an internal or external command,
双引号不起作用
编辑:
感谢“埃里克·梅尔斯基”。 我创建了类似的东西:
TEST_="%VS90COMNTOOLS%..\IDE\MSTest.exe"
TEST="$(TEST_)" /nologo /noresults
test:
$(TEST) /testcontainer:Test.dll
【问题讨论】:
-
使用
CARET (^)转义空格 -
我想使用“%VS90COMNTOOLS%..\IDE\MSTest.exe”而不是“C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\MSTest.exe”。插入符号仅适用于第二个选项。
标签: nmake