Reputation: 41845
I need to add a macro to a visual studio project so that i could use this macro to set properties of the project.
e.g. I could replace 192.168.1.50 to a macro naming $(RemoteComputer).
Could I do this?
Upvotes: 9
Views: 11153
Reputation: 4746
Two options:
.vcxproj
file and go to Project/PropertyGroup[Label="Globals"]
. Add a new tag here, e.g. FooBar and it will appear as a $-macro in the studio-settings for that project.Upvotes: 13