问题
I´m trying to use nmake call MSTest
TEST="%VS90COMNTOOLS%..\IDE\MSTest.exe"
test:
$(TEST) /testcontainer:Test.dll
When i run nmake i got:
$ nmake test
'C:\Program' is not recognized as an internal or external command,
Double quote doesn´t work right
EDIT:
Thanks "Eric Melski". I created something like:
TEST_="%VS90COMNTOOLS%..\IDE\MSTest.exe"
TEST="$(TEST_)" /nologo /noresults
test:
$(TEST) /testcontainer:Test.dll
回答1:
Put double quotes around the usage of $(TEST)
as well:
TEST="%VS90COMNTOOLS%..\IDE\MSTest.exe"
test:
"$(TEST)" /testcontainer:Test.dll
Works with nmake 7 and 8.
回答2:
I faced the same problem before. Well, you can escape the white space in CMD with a '\' when you type manually, while the command is auto generated in this case. So my way is to use a another path without white space in it. Make sure you share your way if you find a better one.
来源:https://stackoverflow.com/questions/6551480/how-to-escape-white-space-in-nmake