Build starts in Release mode then switches to debug

I have build that uses a tfsbuild.proj file and an Upgrade template.
My build is set to build in Release|Any CPU mode.
  <ItemGroup Condition="'$(DebugOnly)' != 'True'">
    <ConfigurationToBuild Include="Release|Any CPU">
      <FlavorToBuild>Release</FlavorToBuild>
      <PlatformToBuild>Any CPU</PlatformToBuild>
    </ConfigurationToBuild>
  </ItemGroup>
This definition builds multiple solutions. I have recently discovered that 2 solutions build some of the same files, so in my log file it builds some projects and then later rebuilds those projects over again. (This is frustrating but the slns are not mine
so I will have to work on getting these changed.)
Here is what my problem is: 
The build is building one file in Release then the second file in debug.
CopyFilesToOutputDirectory:
  abc.Core -> E:\ActiveBldTypes\APM V3\V3.6.0.6.0\bin\Release\abc.Core.dll
Done Building Project "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Core\abc.Core.csproj" (default targets).
Project "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Mobile\WebAPI\abc.WebAPI\abc.WebAPI.csproj" (186) is building "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Registry\abc.Registry.csproj" (14:112) on node 1 (default targets).
Project "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Registry\abc.Registry.csproj" (14:112) is building "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Excel\abc.Excel.csproj" (12:20) on node 1 (default targets).
PrepareForBuild:
  Creating directory "obj\Debug\".
I have checked the abc.Excel.csproj properties and for Release Any CPU the output path is bin\Release\.
Earlier in the log file, remember I said it is building it 2 times, I see:
Project "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Admin\abc.Admin.csproj" (9) is building "E:\ActiveBldTypes\APM V3\V3.6.0.6.0\src\abc\Excel\abc.Excel.csproj" (12) on node 1 (default targets).
PrepareForBuild:
  Creating directory "obj\Release\".
So here is what I do not understand:
The build project is set to build Release|Any CPU
When I open each sln, and look in Configuration Manager, Active config is Release: Active platform is Any CPU
Then look at abc.Excel project, both are set to Configuration = Release, platform = Any CPU.
The project is the exact same project, I don't have 2 in source control so the build process is reading the same abc.Excel.csproj file.
Why is the output Release in one sln and debug in the other. especially in the first case when the first project(abc.Core.csproj) outputs to Release but the second project(abc.Excel.csproj) outputs to debug.  It is like the build process changes to
Debug mid solution??????
Any ideas would be greatly appreciated.
BTW
Using VS2013, TFS2013, build machine 2008/r2

Hello,
 I have recently discovered that 2 solutions build some of the same files, so in my log file it builds some projects and then later rebuilds those projects over again.
I'm not aware of such a behavior, do you mean two solutions build with the same project so that the project is rebuild again?
Aslo I'm not sure of this $(DebugOnly), as far as I know about the condition is like this:
Condition="'$(CONFIG)'=='DEBUG'"
And the output path is write in this property:
OutputPath
I think if you want to unstand the problem, you'd better check your settings in detail, I suspect when you build two solutions maybe the conditions are different and the
OutputPath may haven't write to the same folder. Which caused the directory changed from obj\Debug\ to obj\Release\.
So please check the following:
1. How you set it in your tfs build.
2. How you set the condition.
3. Please check the OutputPath in your csproj or from your build command, that could help us get the reason.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

Maybe you are looking for

  • Replace Images in Keynote '09

    I need to update a presentation with new updated images. Is there a way to swap the current image with another, keeping its animation and properties without going through the pains of inserting the new image, formating it and reapplying the animation

  • Why acrobat  it is not working

    why acrobat  it is not working

  • Mobile Me gallery sorting issue

    I recently upgraded iLife from '08 to '09. I am having an issue when I publish and event to my Mobile Me Gallery where its not sorting the photos correctly in the gallery. They don't seem to sorted the same way as I have them in the event when I publ

  • How to call jsp /servlets running in different web application in tomcat

    hello all, i have 2 web applications(Charts and Reports) in the same tomcat,i want to call jsp/servlets running in the Reports webapp from Charts webapp.how do i achieve this. thanx ravi

  • Drop-Down Dynamic entry list

    Hi, I use a drop-down list in a form view and I would like to use a dynamic entry list from a characteristic (0SALESORG) of a bi query. But the obtained list is empty. I am in BI 70 SP 10. Regards Jacques