Projects being built in wrong flavor


i'm hoping has seen before , can me resolve weird issue.

we using visual studio 2010 , tfs 2010.  using legacy msbuild script upgradetemplate.

in build script, using solutiontobuild elements below.  have lot of them, , contain mix of c++, c++/cli , c# projects.  of our solution files have been set mixedplatform|release configuration.

    <solutiontobuild include="$(buildprojectfolderpath)/../../version 2012.0 cycle/util/groups/util.sln">          <targets></targets>          <properties></properties>      </solutiontobuild>

i have set configurationtobuild below solutiontobuild itemgroup:

     <configurationtobuild include="release|mixed platforms">           <flavortobuild>release</flavortobuild>           <platformtobuild>mixed platforms</platformtobuild>        </configurationtobuild>

however, in our last build, found assembly built in debug.  on further research, found more 1 file built in debug , we've had issue awhile.  due multitude of repeated project references in our product (lots of shared dlls) found dlls built in release, in debug, in release again.  1 file found built last in debug, debug version ended in drop location.

the behavior consistent across builds same definition, , across branching (we branch create release version, , found in previous release).

here's exerpt build log showing setting of configuration:

project "e:\b\synergyecm\version 2012.0 cycle\buildtype\tfsbuild.proj" (1) is building "e:\b\synergyecm\version 2012.0 cycle\buildtype\tfsbuild.proj" (1:2) on node 1 (corecompile target(s)).  building with tools version "3.5".  target "canonicalizepaths" in file "c:\program files (x86)\msbuild\microsoft\visualstudio\teambuild\microsoft.teamfoundation.build.targets" from project "e:\b\synergyecm\version 2012.0 cycle\buildtype\tfsbuild.proj" (entry point):  done building target "canonicalizepaths" in project "tfsbuild.proj".  target "computeconfigurationlist" in file "c:\program files (x86)\msbuild\microsoft\visualstudio\teambuild\microsoft.teamfoundation.build.targets" from project "e:\b\synergyecm\version 2012.0 cycle\buildtype\tfsbuild.proj" (target "corecompile" depends on it):  done building target "computeconfigurationlist" in project "tfsbuild.proj".  target "corecompile" in file "c:\program files (x86)\msbuild\microsoft\visualstudio\teambuild\microsoft.teamfoundation.build.targets" from project "e:\b\synergyecm\version 2012.0 cycle\buildtype\tfsbuild.proj" (entry point):  task "makedir" skipped, due to false condition; (!exists('$(binariesroot)')) was evaluated as (!exists('e:\b\synergyecm\version 2012.0 cycle\binaries')).  task "msbuild"    overriding global properties for project "tfsbuild.proj" with:      configuration=release      platform=mixed platforms

i can't find indication why getting projects built in debug.  here's 1 instance log file shows configuration being set incorrectly:

project "e:\b\synergyecm\version 2012.0 cycle\sources\syn2000\usrdb\usrdb.vcxproj" (141:5) is building "e:\b\synergyecm\version 2012.0 cycle\sources\synergy controls\syncontrolsdata\syncontrolsdata.csproj" (142:11) on node 1 (default targets).  building with tools version "4.0".  target "_checkforinvalidconfigurationandplatform" in file "c:\windows\microsoft.net\framework\v4.0.30319\microsoft.common.targets" from project "e:\b\synergyecm\version 2012.0 cycle\sources\synergy controls\syncontrolsdata\syncontrolsdata.csproj" (entry point):  task "error" skipped, due to false condition; ( '$(_invalidconfigurationerror)' == 'true' ) was evaluated as ( '' == 'true' ).  task "warning" skipped, due to false condition; ( '$(_invalidconfigurationwarning)' == 'true' ) was evaluated as ( '' == 'true' ).  task "message"    configuration=debug  done executing task "message".  task "message"    platform=anycpu  done executing task "message".

does have suggestions of can @ resolve issue?


kathy morey

i apologize not updating sooner.  found our issue - due references in our projects not set properly, , dependency relationships not ordered.  reply
kathy morey


Archived Forums V  >  Team Foundation Server - Build and release management



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........