Pregunta

I have a visual studio solution which has several projects written in C++. Some of the projects build executables and some are libraries. They are all statically linked.

Lets say the names of the projects are:
- ExecutableA
- ExecutableB
- LibA
- LibB

ExecutableA and ExecutableB projects depend on LibA and LibB, but not on each other. Currently, when I start debugging ExecutableA (usually by pressing 'F5'), it wants to build ExecutableB before running. I assumed the Project dependcies were setup incorrectly, but ExecutableA does not seem to be set as dependant on ExecutableB. What other settings could be causing this behaviour? I did not experience this behaviour until we migrated to VS2012, so I'm wondering if there is perhaps a settingwhich has a different default value in VS2012 compared to VS2010?

Note: I'm sure this question has been asked and answered before, but I can't seem to find the right way of phrasing this question as a search to find the answer!

¿Fue útil?

Solución

Check the box

Tools->Options->Projects and Solutions->Build and Run-> Only build startup projects and dependencies on Run

http://msdn.microsoft.com/en-us/library/cyhcc7zc.aspx

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top