We use TFS 2010 with VS 2010 for our web projects (php). Since we do not actualy use .proj files I have created my own to do builds (only zip files to output dir). Also we use MSBuild community tasks. My msbuild.proj for my web application (php) goes like this:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/>
<Target Name="Changelog">
<!-- need to create changelog.txt (all checkin files comments) -->
</Target>
<Target Name="Zip" DependsOnTargets="Changelog">
<ItemGroup>
<ZipFiles Include="**\*.*"/>
</ItemGroup>
<Zip Files="@(ZipFiles)" ZipFileName="$(OutDir)_myzip.zip" />
</Target>
<Target Name="Default" DependsOnTargets="Zip">
<Message Text="My Build Complete" />
</Target>
</Project>
My question is how to write Target "Changelog" that will create changelog.txt with all developer comments for all-time check-in files in TFS. If necesery I can modify DefaultTemplate.xaml file and/or build definition. BuildAgent is started as NETWORK SERVICE and places file on drop folder/network share.