Archive for tag: TFS

Building STSDEV projects with Team Build

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!

WorkItem email notification with Team Foundation Server 2008

How to setup email notification on having assigned a Work Item to you?


1. Download and install Team Foundation Power Tool for Visual Studio @  http://www.microsoft.com/downloads/details.aspx?FamilyId=FBD14EEA-781F-45A1-8C46-9F6BA2F68BF0&displaylang=en#filelist

2. Start Visual Studio and open the Alert Editor

3. Add new Alert -> Work Item alert -> A Work Item was assigned to me

4. Change your name in "Send To" to your current email address

5. Collapse Work Items Alerts to ensure saving (workaround to start saving procedure)

6. DONE!