A few months ago I figured out how to build STSDEV projects with
Team Foundation Server. So here is the result step-by-step (only
the steps that differ from the default project steps):
<ol>
<li>Adjust the target of the solution to DebugBuild. If you
are only building STSDEV projects you can do this at once by
changing following lines in TFSBuild.proj file:
<pre name="code"><configurationtobuild include="Debug|Any
CPU"></configurationtobuild></configurationtobuild></configurationtobuild></configurationtobuild></configurationtobuild></
configurationtobuild=""></></pre>
to:
<pre name="prettyprint"><configurationtobuild
include="DebugBuild|Any
CPU"></configurationtobuild></configurationtobuild></configurationtobuild></configurationtobuild></configurationtobuild></
configurationtobuild=""></></pre>
or per solution:
<pre name="code"><solutiontobuild
include="$(BuildProjectFolderPath)/../../ExampleSolution.sln"></solutiontobuild></solutiontobuild></solutiontobuild></solutiontobuild></solutiontobuild></
solutiontobuild=""></>
<targets></targets></targets></targets></targets></targets></
targets=""></></targets></targets></
targets=""></></
targets=""></></></>
<properties></properties></properties></properties></properties></properties></
properties=""></>Configuration=DebugBuild;Platform=Any
CPU</properties></properties></
properties=""></></
properties=""></></></>
</solutiontobuild></solutiontobuild></
solutiontobuild=""></></
solutiontobuild=""></></></></pre>
</li>
<li>Change the DebugBuild in the Microsoft.SharePoint.targets
file and make it like this:
<pre name="code"><target
name="DebugBuild"></target></target></target></target></target></
target=""></>
<copy condition="'$(IsDesktopBuild)'=='false'"
destinationfolder="$(SolutionDir)bin\debug"
sourcefiles="$(OutDir)$(TargetName).dll"></copy></copy></copy></copy></copy></
copy=""></>
...
<copy condition="'$(IsDesktopBuild)'=='false'"
destinationfolder="$(OutDir)"
sourcefiles="$(SolutionDir)DeploymentFiles\$(PackageName)"></copy></copy></copy></copy></copy></
copy=""></>
</target></target></ target=""></></
target=""></></></></pre>
</li>
<li>Override path to STSDEV for the build on the server
(TFSBuild.proj):
<pre
name="code"><custompropertiesforbuild></custompropertiesforbuild></custompropertiesforbuild></custompropertiesforbuild></custompropertiesforbuild></custompropertiesforbuild></
custompropertiesforbuild=""></>STSDEV="C:\Software\STSDev
v1.3\stsdev.exe"</custompropertiesforbuild></custompropertiesforbuild></
custompropertiesforbuild=""></></
custompropertiesforbuild=""></></></></pre>
</li>
</ol>
Once this is done you can build your STSDEV projects on the
TeamBuild server. Have fun!
A few months ago I figured out how to build STSDEV projects with
Team Foundation Server. So here is the result step-by-step (only
the steps that differ from the default project steps):
Adjust the target of the solution to DebugBuild. If you are only
building STSDEV projects you can do this at once by changing
following lines in TFSBuild.proj file:
<configurationtobuild include="Debug|Any
CPU"></configurationtobuild>
to:
<configurationtobuild include="DebugBuild|Any
CPU"></configurationtobuild>
or per solution:
<solutiontobuild
include="$(BuildProjectFolderPath)/../../ExampleSolution.sln"></solutiontobuild><targets></targets><properties>Configuration=DebugBuild;Platform=Any
CPU</properties></solutiontobuild>
Change the DebugBuild in the Microsoft.SharePoint.targets file
and make it like this:
<pre name="code" class="xml"><target
name="DebugBuild">
<copy condition="'$(IsDesktopBuild)'=='false'"
destinationfolder="$(SolutionDir)bin\debug"
sourcefiles="$(OutDir)$(TargetName).dll"></copy>
...
<copy condition="'$(IsDesktopBuild)'=='false'"
destinationfolder="$(OutDir)"
sourcefiles="$(SolutionDir)DeploymentFiles\$(PackageName)"></copy>
</target>
Override path to STSDEV for the build on the server
(TFSBuild.proj):
<custompropertiesforbuild>STSDEV="C:\Software\STSDev
v1.3\stsdev.exe"</custompropertiesforbuild>
Once this is done you can build your STSDEV projects on the
TeamBuild server. Have fun!