Search code examples
visual-studio-2010msbuildbuild-process

Visual studio 2010: Where is variable like $(...)?


I would like to know where variables like$(...) are declared and how to define a custom one.

I mean, when you open a C# project configuration file (.csproj) there are a lot of variable like: $(SolutionDir), $(MSBuildBinPath) - where are these configured?

If I want to create a custom one to use within a .csproj file to point to somewhere, how to do this?


Solution

  • These are just Visual Studio internal variables. You can however use regular Windows system variable in VS using the same syntax.