views:

23

answers:

0

After a TeamBuild project built all files, how can I create a collection of all built .exe and .dll files?

For instance, I update all AssemblyInfo versions by creating a property and an itemgroup like so:

<PropertyGroup>
  <AssemblyInfoSpec>AssemblyInfo.*</AssemblyInfoSpec>
</PropertyGroup>

<Target Name="AfterGet" Condition="'$(IsDesktopBuild)'!='true'">
  <CreateItem Include="$(SolutionRoot)\**\$(AssemblyInfoSpec)">
    <Output ItemName="AssemblyInfoFiles" TaskParameter="Include" />
  </CreateItem>

  <Message Text="These AssemblyInfo.* files were found:"/>
  <Message Text ="@(AssemblyInfoFiles)"/>    
</Target>

I then can do something with all AssemblyInfo files (like reversioning them as described here:
How to let Team Build automatically increment the Assemblys’ version information.

Now I need exactly such a collection of files including all .exe and .dll files that the TeamBuild process actually built. The reason for this is, that I need to code sign them with the signtool and an authenticode certificate.

Does anyone have a solution for this?

Regards, Chris.

related questions