Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / June 2007

Tip: Looking for answers? Try searching our database.

Generate XML Documentation via MSBuild CMD

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bthubbard - 20 Jun 2007 14:33 GMT
This may not be the best group in which to post this.  If there is a
better location please direct me there.

I have been experimenting with Sandcastle to generate CHM help file
documentation for some of our projects.  I can configure a project(s)
to generate the required XML Documentation file by editing the project
properties via VS or I believe, if we were using one, a XML
configuration file for MSBuild.  We usually build our solutions via a
script with a call to MSBuild.  I'm wondering if there is a way to
write a command line argument for MSBuild that will instruct it to
generate the XML Documentation file with the same name and target as
editing the project in VS would generate?  For example I can add the
property ">MSBuild ... /p:DocumentationFile=fileName.xml.." which will
generate "fileName.xml".  I would rather it generate
"MyNamespace.MyAssembly.xml" in the bin\debug directory for example.

Thanks.
Nicholas Paldino [.NET/C# MVP] - 20 Jun 2007 14:58 GMT
bthubbard,

   Well, you have a few options here.  You could replace DocumentationFile
with the project name (it should be available to you as a variable which you
can generate the name from, something like
"/p:DocumentationFile=($Project).xml"), or you can generate a custom task to
do what you want.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> This may not be the best group in which to post this.  If there is a
> better location please direct me there.
[quoted text clipped - 13 lines]
>
> Thanks.
Peter Bradley - 20 Jun 2007 15:30 GMT
Don't know if this helps, but you can add a command to Sandcastle Builder as
a VS post-build event.  Something like:

"C:\Program Files\EWSoftware\Sandcastle Help File
Builder\SandcastleBuilderConsole.exe" $(SolutionDir)\$(SolutionName).shfb

(Assuming the path to SandcastleBuilderConsole.exe is in the default place)

I'm endebted to Ian Stevenson and VSJ for this tip.

Peter

> This may not be the best group in which to post this.  If there is a
> better location please direct me there.
[quoted text clipped - 13 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.