Pergunta

Where are 'global macros' for VS2010 project properties defined ?

With global macros, i mean the variables after a $ sign, for instance in

$(SolutionDir)My_build\$(ProjectName)\$(Configuration)\$(Platform)\objects\

Where are SolutionDir, ProjectName defined ?

The line i mention as an example is in the Intermediate Directory properties in VS2010 project properties.

Foi útil?

Solução

I don't think this has changed (I'm using VS 2013)

Right click your project and select "Properties"

Click "Build Events"

Click "Edit Pre-build..."

Click "Macros >>"

There they are.

Outras dicas

These are macros for build commands and properties that come along with Visual Studio.

You can use these macros anywhere in a project's Property Pages dialog box where strings are accepted. These macros are not case sensitive.

To display the currently available macros, in the column to the right of a property name, click the drop-down arrow. If Edit is available, click it and then in the edit dialog box, click Macros. For more information, see the Specifying User-Defined Values section of Property Pages (C++).

Check out here for more info.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top