Unnecessary builds in VS2005 when build configuration is switched



Hello All!

I found strange bug (or feature?) in VS 2005
It can be reproduced using following scenario:

1. Create blank solution
2. Add new two C# projects of type Class Library named A and B
3. Add project B reference to project A (make A dependent on B)
4. Execute build using default (Debug) build configuration
5. Switch to Release configuration then immediately switch back to Debug
6. Execute build -- Attention: project A will be unnecessary recompiled!

I found following fact: each time solution configuration is switched Visual
Studio creates empty file A\obj\$(Configuration)\build.force (only for
poject A).
When this file exists build command executed from visual studio recompiles
project A then deletes build.force file.
build.force file existence is taken into account only when solution is
building from Visual Studio, but completely ignored when solution is
building from command line using msbuild.exe.

It is very unpleasant behavior if solution contains many dependent projects,
because frequent configuration switches will force to unnecessary and
long-time build.

Is there any workaround or clean resolution of trouble described about?

--
Regards,
Vladimir Ivanov


.



Relevant Pages

  • mouse config reset in visual studio
    ... debugging, and so on, my mouse configuration is reset. ... This reseted configuration is active only in visual studio. ... problem occurs, I switch to another application, my mouse works right. ...
    (microsoft.public.vstudio.general)
  • RE: Verifiable .exe impossible using managed C++?
    ... (Visual Studio .NET 2003). ... your managed entry point is e.g. ... I do not know wether it works with the -debug switch. ... It should be possible to specify assemblies as ...
    (microsoft.public.dotnet.framework)
  • Re: MSTP, LACP (and possible UDLD?)
    ... Switch A - HP ProCurve 6200yl ... Status and Counters - Port Status ... Relevant parts of the configuration from one of the routers/switches, ... spanning-tree Trk1 priority 0 ...
    (comp.dcom.lans.ethernet)
  • Re: Running Two Visual Studios at the same time, Dlls are being locked
    ... able to run VIRTUALPC with XP for client. ... > other Visual studio I am debugging the client application. ... > Its when I try to run the webservice that I get a configuration errror ... Policy not being applied to reference at this time (private, ...
    (microsoft.public.dotnet.framework)
  • [git patches] net driver fixes
    ... a bitrotten variant of the slip driver. ... Contains general updates (additional configuration info, ... Configuring Bonding Devices ... High Availability in a Single Switch Topology ...
    (Linux-Kernel)