MSbuild doesn't expand environment variables -


i'm using msbuild build solution file command line. in it, path vcxproj file specified environment variable foo %foo%\projname.vcxproj

when open sln in ide, project found , loaded. when use msbuild command line (on same machine) error of:

the project file "c:\blah\blah\%foo%\projname.vcxproj" not found, 

in same command prompt

echo %foo%   

gives me correctly expanded path.

from comments; known bug , wontfix ms. ended writing batch file copy sln file , expand environment variables, build that, , delete new sln. works fine.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -