Sunday, 15 February 2015

msbuild - Access ProgramFilesFolder from Visual Studio post-build events -



msbuild - Access ProgramFilesFolder from Visual Studio post-build events -

when building c# project in visual studio, in post-build events need phone call programme situated in c:\program files\\myprogram.exe. how can access "c:\program files" folder post-build events?

at link: http://msdn.microsoft.com/en-us/library/42x5kfw4.aspx there several macros can used in post-build events section of visual studio. there macro or there way access default programfilesfolder path?

don't macro, none provided since can utilize environment variables in pre/post-build steps. can .bat file, way these build steps execute. looking %programfiles% environment variable. run program, use:

"%programfiles%\myprogram.exe"

visual-studio msbuild post-build-event

No comments:

Post a Comment