Is there a list of Visual Studio environment varia

2019-01-18 01:01发布

Possible Duplicate:
Link to all Visual Studio $ variables

Visual 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.

2条回答
beautiful°
2楼-- · 2019-01-18 01:37

You can get the list of available environment variables directly within Visual Studio 2010 with the following steps:

  1. in Visual Studio env, right click on your project
  2. properties
  3. configuration properties / C++ / General
  4. for ex. go into Additional Include directories
  5. 'dropdown' Edit
  6. 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.

查看更多
手持菜刀,她持情操
3楼-- · 2019-01-18 01:39

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.

查看更多
登录 后发表回答