I have a Visual Studio C# solution with 3 different projects in it. In each of the projects I've commented all the code using xml-comments. If I want the comments build into xml, I have to specify a output file for each project. Is it possible to build all xml comments into one file?
Asked
Active
Viewed 260 times
4
-
You could use a post-build event and use an XSLT transformation to join the various XML files. – driis Jul 28 '11 at 18:49
-
@driis - can you point me to an example of this? – Bildsoe Jul 28 '11 at 19:00
-
1actually, I don't have an example, I was just thinking out loud the steps I might take if I wanted to do it. Another idea would be to download Sandcastle and see it there might be parts in there that will help you (Sandcastle, is (among other things) a whole bunch of XSLT transformations, that work on the XML documentation files VS generates). – driis Jul 28 '11 at 19:06
-
@driis - ok thanks. I'm going to look both into the post-build event and Sandcastle. – Bildsoe Jul 28 '11 at 19:12
1 Answers
2
you can use a post build event with the copy command using the following syntax:
copy file1.xml + file2.xml + fileN.xml destinationFile.xml
I would put this in the post build event for the main project that depends on everything else in the solution.

Charles Lambert
- 5,042
- 26
- 47