Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Build" builds my project, "Build Solution" doesn't

I've just started using VS2010. I've got a largish solution that migrated successfully from VS2008. I've added a console application project called "Test" to the solution. Selecting build->build solution does not compile the new project. Selecting build->build Test does build the project. In the failure case, no error is given.

Similarly, setting this project as the startup project and pressing F5 to start debugging also fails to compile.

I'm upset by this. Can anyone calm me down by telling me what I'm doing wrong?

EDIT

I don't know if this is relevant or not, but today I installed AnhkSVN 2.1.8420 (latest version).

like image 557
spender Avatar asked Oct 26 '10 17:10

spender


People also ask

What is the difference between build Solution and build project?

Build solution will build any projects in the solution that have changed. Rebuild builds all projects no matter what, clean solution removes all temporary files ensuring that the next build is complete.

What is the difference between build and rebuild in Visual Studio?

Build and rebuild are two options available in Visual Studio. The main difference between build and rebuild in Visual Studio is that build helps to complete the code files which are changed while rebuild deletes all previously compiled files and compiles the solution from scratch ignoring anything done before.

How do I compile a solution in Visual Studio?

To compile multiple C++ project items In Solution Explorer, choose multiple files that can be compiled, open the shortcut menu for one of those files, and then choose Compile, or press Ctrl+F7. If the files have dependencies, the files will be compiled in dependency order.

Is rebuild the same as clean and build?

For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel).


1 Answers

Make sure the solution configuration is set to build your new project.

Go to Build | Configuration Manager and see if the build checkbox is set for your project

like image 172
Brad Cunningham Avatar answered Sep 29 '22 20:09

Brad Cunningham