Common Projects outside solution root not building
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:
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
Post a Comment