Vasyl Boroviak
Vasyl Boroviak

Reputation: 6128

Visual Studio 2010 does not build new project

I'm developing WinForms application using VS2010. I have about 15 projects in the solution. When I'm adding new one (with couple of references to existing projects) and trying to (Re)Build main executable project the VS does not build the newbie!

Any ideas?

Windows 7, 64bit, no VS addons installed, .Net 3.5, plain C#.

UPD: In the Build log I see it was built, but it was not copied to the $OutDir.

    ------ Build started: Project: NewbieProject, Configuration: Debug Any CPU ------
      NewbieProject -> D:\Projects\MySolution\NewbieProject\bin\Debug\NewbieProjectr.dll

UPD2: If I reference newbie project from main executable project the copying happens. BUT! This applcation designed to use IoC container. This means no references between main and newbie should exist. How to deal with VS2010 output copying and IoC containers?

Correct Solution: Set every ptoject output to the same folder. For example: "../bin/Debug/"

Upvotes: 2

Views: 1782

Answers (3)

Ralf de Kleine
Ralf de Kleine

Reputation: 11734

Open menu Build > Configuration Manager and make sure all build boxes are checked.

enter image description here

Upvotes: 5

Jeff LaFay
Jeff LaFay

Reputation: 13350

Make sure it's selected in your build configuration. If it isn't you should something on the build output stating "1 project(s) ignored" if not more projects.

Edit
Does right clicking the Project in the Solution Explorer and then clicking Build or Rebuild work?

Upvotes: 0

Grhm
Grhm

Reputation: 6834

Have you added the newbie project as a reference to the main executable project? If not the DLL will not be needed by the main executable and will not be copied...

Upvotes: 2

Related Questions