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=""C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\GacUtil.exe"
-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!