DCSIMG
Team Build - Dynamicly adding project outputs to GAC - Maor's Blog

Team Build - Dynamicly adding project outputs to GAC

It's occurs sometimes  that after a successful build, we need to iterate through all assemblies outputs and install each assembly to the gac..

Solution:

First, we have to use a CreateItem task like:

<CreateItem Include="&quot;C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\GacUtil.exe&quot; 
    -i $(DropLocation)$(Slash)$(BuildNumber)$(Slash)Release/*.dll">
    <Output TaskParameter="Include" ItemName="AssembliesToGac"/>
</CreateItem>

Next step is to batch it to another target:

<Exec Command="someCommand @(AssembliesToGAC)" />

 

Enjoy!

 

Published 12 June 2008 01:38 AM by Maor David-Pur

Comments

# Team System News said on 16 June, 2008 03:58 PM

Applied Team System on New E-Book: Mastering Database Edition Volume 1 Maor David on Team Build - Dynamically...

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above:

Search

Go

This Blog

News

    RSS

     

    Connect with Me

    Maor's Facebook profile  Follow Maor on Twitter  Maor's profile on Linkedin  Maor in FriendFeed 
           

Syndication