Common Projects outside solution root not building


(vs.net 2005 sp1) code snippet


i have coreteam project c# projects common our apps.

the applications use these common projects in team project.

the application solution files have references project in 2 different team projects , when opened in vs.net pull down tfs projects different team projects nicely.

i don't use branching.

when create team foundation build project fails build because can't find core projects located outside of solution root.


i error on core project not located under "myapp" solution root:


code snippet

solution: myapp.sln, project: myapp.dal.csproj, compilation errors , warnings
c:\tfs\build\myapp.sln(0,0): error msb3202: project file "..\..\common\core\core.csproj" not found.

what have done build projects part of build, in own target, prior .sln building. created seperate targets each assembly needed build. portion of tfsbuild.proj file. did sometime when learning it, there maybe better way, works me.

 

<target name="compileadmintool">

    <createitem include="$(admintooldir)\**\*.cs;$(commonassemblyfile)" >
      <output taskparameter="include" itemname="admininputs"/>
    </createitem>
    <makedir directories="$(admintooldir)\bin"/>

    <csc  sources="@(admininputs)"
         targettype="library"
         emitdebuginformation="$(debug)"
          documentationfile="$(admintooldir)\bin\myproject.admintool.xml"
          references="mscorlib.dll;
                $(binaries)\$(enterpriseconfigurationdll);
                $(binaries)\$(enterprisedll);
                $(binaries)\$(frameworkdll);
                $(binaries)\$(webdll);
                $(binaries)\$(websitedll)"
      outputassembly="$(admintooldir)\bin\$(admintooldll)"
      warninglevel="0">
    </csc>
  </target>

 

-paul



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



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607