Pergunta

I have a C++ solution in Visual Studio (2012 Express) containing 15 projects.

1 is defined as the main project (the one that is first built as the whole solution is built).

All the 15 projects have 2 same external dependencies. I mean I have to add the 2 same folders to Project Properties > Configuration Properties > VC++ Directories.

This is a bit boring to do this manually.

Is there a way to add the required dependencies only to the main project and to tell VC11 to replicate this configuration to the other 14 projects in my solution?

Foi útil?

Solução

You select multiple nodes - see this pic:

enter image description here right click and select properties....

N.B. Forgot in my original answer - don't forget to select the correct Configs (Or all configs)

Outras dicas

I use VC++ Express 2008 but I think it should work as well:

1:Open the property pages and put the dependencies on the first project.

2:After that, copy the text with the dependencies directories from the input text box.

3:Click on the next project on the Solution Explorer (or whatever the box with the projects and source code files is called on VC2012). The same property page of that project will be open.

4:Just paste the text after whatever is written there.

5:If there are any projects left to change: go to step 3.

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