Is there a list of Visual Studio environment variables?
Solution 1
In most places where you can use those, there's a "Macros" button or similar, which shows all available macros and the current value of them. For example, go to the PostBuild event editor to find the list.
Edit: I just checked. There's a list in MSDN.
Solution 2
You can get the list of available environment variables directly within Visual Studio 2010 with the following steps:
- in Visual Studio env, right click on your project
- properties
- configuration properties / C++ / General
- for ex. go into Additional Include directories
- 'dropdown' Edit
- Macros
There you will find a complete list of available macros with their values set according to your settings. This can be very useful when debugging or selecting the right macro for your project settings.
Related videos on Youtube
Dana Robinson
Updated on September 27, 2020Comments
-
Dana Robinson over 3 years
Possible Duplicate:
Link to all Visual Studio $ variablesVisual Studio has a lot of environment variables like $(TargetFileName) but I can't seem to find a list of all of them on MSDN or via Google.
Does such a list exist?
NOTE: See the top answer for the duplicate question (link above) for a link to a list on MSDN.
-
carlin.scott almost 8 yearsThose are actually called "macros". Visual Studio also provides some environment variables but they are accessed and named differently.
-
-
sancho.s ReinstateMonicaCellio about 10 yearsPS: this is the same list as in this answer. Quite useful.
-
Rocky Scott about 8 yearsIn Visual Studio Premium 2013 (at least when I am using c#) the click path given here does not exist. Clicking the "Macros >>" button as noted by @OregonGhost works and gives the "available macros with their values set according to your settings".