{"id":198,"date":"2010-07-07T19:32:34","date_gmt":"2010-07-07T23:32:34","guid":{"rendered":"http:\/\/www.sunnychow.com\/wordpress\/?p=198"},"modified":"2010-07-07T19:32:34","modified_gmt":"2010-07-07T23:32:34","slug":"visual-studio-build-enviroment-variables-aka-property-sheet-user-macro","status":"publish","type":"post","link":"https:\/\/www.sunnychow.com\/wordpress\/2010\/07\/visual-studio-build-enviroment-variables-aka-property-sheet-user-macro\/","title":{"rendered":"Visual Studio Build Enviroment Variables (aka Property Sheet User Macro)"},"content":{"rendered":"<p>\nHere&#8217;s a howto for setting build environment variables within Visual Studio itself.  Given that I&#8217;ve seen plenty of projects that used system wide environment variables for project level settings, I suspect this will be of use to other developers as well.\n<\/p>\n<ol>\n<li>From the menu:  View > Other Windows > Property manager.<\/li>\n<li>Right click on Property Manager, add Property Sheet.<\/li>\n<li>Double click on the just created Property Sheet.<\/li>\n<li>Click on User Macros.<\/li>\n<li>Click Add Macro.<\/li>\n<li>Add the build variable&#8217;s name and value.  Check &#8220;Set this macro as an environment variable in the build environment&#8221;.<\/li>\n<\/ol>\n<p>References<\/p>\n<ul>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/5k4a0033.aspx\">MSDN entry: How to: Add New Property Sheets to C++ Projects<\/a><\/li>\n<li><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/a2zdt10t.aspx\">MSDN entry: Add User Macro Dialog Box<\/a><\/li>\n<li><a href=\"http:\/\/www.gamedev.net\/community\/forums\/topic.asp?topic_id=403145\">Forum Topic Discussing this subject<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a howto for setting build environment variables within Visual Studio itself. Given that I&#8217;ve seen plenty of projects that used system wide environment variables for project level settings, I suspect this will be of use to other developers as &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.sunnychow.com\/wordpress\/2010\/07\/visual-studio-build-enviroment-variables-aka-property-sheet-user-macro\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts\/198"}],"collection":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":1,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/posts\/198\/revisions\/199"}],"wp:attachment":[{"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunnychow.com\/wordpress\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}