visual studio 2005 - How can I override a (.vsprops) property (UserMacro) with an environment variable? -
so, want (visual studio 2005 and/or 2010, microsoft , intel compilers) 1 - new dev checks out code 2 - dev builds on desktop in unknown location "default" values no need environment settings, no need configuration, as-submitted code "just works". 3 - build machine overrides "default" values build-specific parameters i thought had working .vsprops. define things like <usermacro name="shared_libs_home" value="....\shared" /> on build server, it's not in ....\shared, use environment variable shared_libs_home set (say) "g:\shared" , use g:\shared instead of "....\shared" when running. but doesn't work: looks (with visual studio 2005 @ least) if have property defined environment variable , usermacro in included .vsprops, usermacro takes priority. i can see multitude of websites 1 can set .vsprops override .vcproj setting, or set .vsprops export values environment, want set .vsprops set...