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 property if environment not set.

in msbuild easy: microsoft has listed "best practice" @ http://msdn.microsoft.com/en-us/library/ee240983.aspx

any suggestions?


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -