Welcome to MSDN Blogs Sign in | Join | Help

Passing custom properties to each individual solutions in Team Build

Though one of my earlier blogs is titled "Building .NET 1.1 application using Team Build", the principal used in that blog can easily be generalized to pass any custom property to each solution/project file while building using Team Build.

Say you want to sign each assembly built by a key. One option is to open each project and set the SignAssembly and AssemblyOriginatorKeyFile properties to appropriate value. This is quite a work if there are more than handful of projects. Moreover, this will not work if want the signing to be there only for Team Build and not when developer builds on her desktop.  (Or, may be you want to use two different keys.)

There is another option to do this easily in Team Build - change the AdditionalPropertiesForBuildTarget mentioned in the above blog to the following - 

<AdditionalPropertiesForBuildTarget>

SignAssembly=true;AssemblyOriginatorKeyFile=Z:\sign\mykey.snk

</AdditionalPropertiesForBuildTarget>

This will do the trick!

Thanks,

Gautam

Published Thursday, April 20, 2006 4:36 AM by gautamg

Comments

# VSTS Links - 04/21/2006

Friday, April 21, 2006 10:01 AM by Team System News
Rob Caron tells us about the Code Coverage &amp; Performance Tool FAQS, Microsoft taking less traveled road...

# Passing custom properties to individual solutions in Team Build

Monday, March 19, 2007 3:56 PM by Aaron Hallberg

Gautam Goenka posted an article on this topic way back on April 20, 2006. It included a targets file

# Aaron's back and has new posts on Team Build

Wednesday, March 21, 2007 2:02 PM by Buck Hodges

Aaron Hallberg took a month off after the birth of his daughter, Stella . Now that he's back, he's got

# 【日本語版】 Team Build でカスタム プロパティを個々のソリュ―ションに渡す

Monday, February 16, 2009 9:29 PM by Microsoft Japan Forum Operators Blog

こんにちは! フォーラム オペレーターの服部清次です。 前回の更新から少し時間が経ち、 あっという間に2月も後半に入 ってしまいましたが、皆さん、いかがお過ごしですか? 今日は、久しぶりに、 MSDN

# Gautam Goenka MSFT Passing custom properties to each individual | Weak Bladder

Anonymous comments are disabled
 
Page view tracker