The value of the Visual Studio IDE setting variables - Stack Overflow

admin2025-05-02  1

How to "echo" and know the value of the Visual Studio IDE setting variables ( ie. with $() )
e.g. $(WindowsSDK_IncludePath)

How to know what it's

How to "echo" and know the value of the Visual Studio IDE setting variables ( ie. with $() )
e.g. $(WindowsSDK_IncludePath)

How to know what it's

Share Improve this question edited Jan 2 at 5:49 Dou Xu-MSFT 3,5791 gold badge5 silver badges8 bronze badges asked Jan 2 at 2:18 user17227456user17227456 1,3296 silver badges12 bronze badges 1
  • What language are you using? – Blindy Commented Jan 2 at 2:29
Add a comment  | 

1 Answer 1

Reset to default 1

If you want to see the currently available macros, for example you can go to Project Properties for a C++ project.

Right click project->Properties->Configuration Properties->VC++ Directories->Include Directories->Edit->Macros, type $(WindowsSDK_IncludePath)and you will see it's value.

Besides, you can also echo the value of the Visual Studio IDE setting variables in via MSBuild Task. Add the following to your project file:

 <Target Name="Test">
     <Message Text="WindowsSDK_IncludePath value:$(WindowsSDK_IncludePath)" />
  </Target>

Test Result:

Docs Referred:

View the current properties and macros

转载请注明原文地址:http://www.anycun.com/QandA/1746136336a92074.html