I need to get a list of changed files from chageset only and exclude all other junk.
I can get this information from the command tf changeset /i $(changesetnumber) but besides of List of files i have a lot of other information which I dont need for my purposes.
Or maybe someone can tell how to get this list of files from ccnet so I can send it to my msbuild.proj file via property.
You could use the TFS API to get the information you want. Here's some example C# code that will select the file names of all edited, added and deleted files
I'm afraid I haven't used cc.net so can't advise on the best way to integrate this into ccnet, but you could compile it into a small utility or rewrite it in a scripting language (e.g. Powershell, IronPython)
You could use CCNET's Modification Writer Task. Put it to your CCNET configuration's
<prebuild>
section and process the generated file in your<msbuild>
task:Note: I'm not really experienced in MSBuild so any advice on how to parse the XML output in a more elegant way is highly appreciated.
Hint:
<XmlPeek>
task requires .NET 4.0 MSBuild.