Visual Studio 2012 not building dependent projects

Posted by user1438940 on Stack Overflow See other posts from Stack Overflow or by user1438940
Published on 2012-06-16T14:39:50Z Indexed on 2012/06/16 15:16 UTC
Read the original article Hit count: 380

Filed under:
|
|

I just upgraded a VS2010 project to VS2012 and am now having a problem where dependent projects are not building on demand. For instance, say I have the following projects in my solution:

  • Library A
  • ConsoleApp 1

Where ConsoleApp 1 references Library A. If I change the signature of a method in a class in Library A and run ConsoleApp 1, there will be a compiler error due to ConsoleApp 1 not seeing my changes because running ConsoleApp 1 did NOT cause Library A to build.

If I manually build Library A, then manually build ConsoleApp 1, it works fine. However, I would expect that running ConsoleApp 1 should cause any dependent projects to be rebuilt before launching.

Could I have something configured incorrectly? Or is this a bug in VS2012?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ide