<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Professional Visual Studio &#187; Addons and Extras</title>
	<atom:link href="http://www.professionalvisualstudio.com/blog/tags/addons-and-extras/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.professionalvisualstudio.com/blog</link>
	<description>Tips, Tricks, and Best Practices for professional .NET developers</description>
	<lastBuildDate>Sun, 15 Aug 2010 02:44:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PowerCommands for Visual Studio 2008</title>
		<link>http://www.professionalvisualstudio.com/blog/2008/03/02/powercommands-for-visual-studio-2008/</link>
		<comments>http://www.professionalvisualstudio.com/blog/2008/03/02/powercommands-for-visual-studio-2008/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 17:44:53 +0000</pubDate>
		<dc:creator>Keyvan Nayyeri</dc:creator>
				<category><![CDATA[Addons and Extras]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[VSX]]></category>

		<guid isPermaLink="false">http://www.professionalvisualstudio.com/blog/2008/03/02/powercommands-for-visual-studio-2008/</guid>
		<description><![CDATA[Today Visual Studio Ecosystem team announced the availability of PowerCommands for Visual Studio 2008 as a free set of extensions that brings lots of helpful features to Visual Studio IDE. These commands are available with source code to let you learn how to develop new commands or modify them. Some of these features are a [...]]]></description>
			<content:encoded><![CDATA[<p>Today Visual Studio Ecosystem team announced the availability of <a href="http://blogs.msdn.com/vsxteam/archive/2008/02/29/PowerCommands-for-Visual-Studio-2008-released.aspx">PowerCommands for Visual Studio 2008</a> as a free set of extensions that brings lots of helpful features to Visual Studio IDE. These commands are available with source code to let you learn how to develop new commands or modify them. Some of these features are a part of some editions of Visual Studio 2008 and you can bring them to other editions via these commands.</p>
<p>You need to have Visual Studio 2008 SDK 1.0 installed to be able to open the source code for these commands.</p>
<p>A short list of features that are provided by this project are:</p>
<ul>
<li>Collapse Projects</li>
<li>Copy Class</li>
<li>Paste Class</li>
<li>Copy References</li>
<li>Paste References</li>
<li>Copy As Project Reference</li>
<li>Edit Project File</li>
<li>Open Containing Folder</li>
<li>Open Command Prompt</li>
<li>Unload Projects</li>
<li>Reload Projects</li>
<li>Remove and Sort Usings</li>
<li>Extract Constant</li>
<li>Clear Recent File List</li>
<li>Clear Recent Project List</li>
<li>Transform Templates</li>
<li>Close All</li>
</ul>
<p>You can download the package that contains the source code of PowerCommands from the <a href="http://blogs.msdn.com/vsxteam/archive/2008/02/29/PowerCommands-for-Visual-Studio-2008-released.aspx">announcement post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.professionalvisualstudio.com/blog/2008/03/02/powercommands-for-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Building Castles in the Sand, Part II</title>
		<link>http://www.professionalvisualstudio.com/blog/2007/12/09/building-castles-in-the-sand-part-ii/</link>
		<comments>http://www.professionalvisualstudio.com/blog/2007/12/09/building-castles-in-the-sand-part-ii/#comments</comments>
		<pubDate>Sun, 09 Dec 2007 12:38:47 +0000</pubDate>
		<dc:creator>Dave Gardner</dc:creator>
				<category><![CDATA[Addons and Extras]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.professionalvisualstudio.com/blog/2007/12/09/building-castles-in-the-sand-part-ii/</guid>
		<description><![CDATA[This is the second in a 3-part series on using the Sandcastle tools to produce great looking (and hopefully useful) internal documentation. In this post we provide an overview of the Sandcastle template system, which is what provides the look-and-feel of the final documentation. In the Part I of this series we covered how to [...]]]></description>
			<content:encoded><![CDATA[<p>This is the second in a 3-part series on using the <a href="http://www.sandcastledocs.com/" target="_blank">Sandcastle</a> tools to produce great looking (and hopefully useful) internal documentation. In this post we provide an overview of the Sandcastle template system, which is what provides the look-and-feel of the final documentation.</p>
<p>In the <a href="http://www.professionalvisualstudio.com/blog/2007/11/19/building-castles-in-the-sand-part-i/">Part I</a> of this series we covered how to get up and running with Sandcastle  and generate a CHM documentation file using the build.prof MSBuild project. By default, the MSBuild project that ships with Sandcastle generates the documentation with the <code>vs2005</code> template. You can control the output style by adding one of the following options to the command line:</p>
<blockquote><p><code>/property:PresentationStyle=vs2005<br />
/property:PresentationStyle=hana<br />
/property:PresentationStyle=prototype<br />
</code></p></blockquote>
<p>Below you can view and compare screen shots of a VS2005, Hana, and Prototype formatted help files (click to see full-size images).</p>
<p><a href="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/vs2005_chm.png" title="VS2005 formatted help file" target="_blank"><img src="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/vs2005_chm.thumbnail.png" alt="VS2005 formatted help file" /></a>  <a href="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/hana_chm.png" title="Hana formatted help file" target="_blank"><img src="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/hana_chm.thumbnail.png" alt="Hana formatted help file" /></a> <a href="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/prototype_chm.png" title="Prototype formatted help file" target="_blank"><img src="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/prototype_chm.thumbnail.png" alt="Prototype formatted help file" /></a><a href="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/12/hana_chm.png" title="Hana Template"> </a></p>
<p>The templates themselves consist of a set of files (configuration and XSL transforms), and can be found under the <em><sandcastle_install_directory></sandcastle_install_directory></em>\Presentation directory. Each template is in a separate directory, and has the following sub-folders:</p>
<ul>
<li><strong>Configuration</strong>: contains Sandcastle config files (you probably won&#8217;t need to changes these);</li>
<li><strong>Content</strong>: XML files containing resource strings;</li>
<li><strong>Icons</strong>: images that are used in the resulting compiled HTML documentation;</li>
<li><strong>Scripts</strong>: javascript files that are used in the resulting compiled HTML documentation;</li>
<li><strong>Styles</strong>: CSS files containing formatting for the resulting compiled HTML documentation;</li>
<li><strong>Transforms</strong>:  XSLT that convert the XML document file to HTML documentation.</li>
</ul>
<p><code></code>Unless you are planning to develop your own template, which is definitely not for the faint-hearted and certainly outside of the scope of this blog post, you&#8217;ll want to contain yourself to editing the configuration and resource files. The following is an example of an edit that you might want to look at.</p>
<p>One of the things you might have noticed with the documentation that is produced using the VS2005 template is the really nice looking feedback form at the bottom of each page. This is shown below:</p>
<p><img src="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/11/sandcastlefeedback.png" alt="Feedback section on Sandcastle CHM file" /></p>
<p>In order to get this to work properly, you need to set the target email address that will receive the feedback. Change directory to <em><sandcastle_install_directory></sandcastle_install_directory></em>\Presentation\vs2005\Content and open the <code>feedBack_content.xml</code> file in your favourite text editor (mine is <a href="http://notepad-plus.sourceforge.net/" target="_blank">Notepad++</a>). The second set of XML elements are what we are interested in. In particular, you can set the target email address by modifying the line as follows:</p>
<p><code>&lt;item id="feedback_alias"&gt;myemail@example.com&lt;/item&gt;</code></p>
<p>Once the help file is recompiled, clicking on the&#8221;Send Feedback&#8221; button will open a new email with the correct email address pre-populated.</p>
<p>There&#8217;s obviously plenty more to know about the Sandcastle template system. The aim of this post was simply to provide an  overview and understanding of the templates.</p>
<p>Part III will cover how to generate documentation in the Microsoft Help 2 (HxS) format, which is the format that the Visual Studio help system uses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.professionalvisualstudio.com/blog/2007/12/09/building-castles-in-the-sand-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Castles in the Sand, Part I</title>
		<link>http://www.professionalvisualstudio.com/blog/2007/11/19/building-castles-in-the-sand-part-i/</link>
		<comments>http://www.professionalvisualstudio.com/blog/2007/11/19/building-castles-in-the-sand-part-i/#comments</comments>
		<pubDate>Mon, 19 Nov 2007 08:42:34 +0000</pubDate>
		<dc:creator>Dave Gardner</dc:creator>
				<category><![CDATA[Addons and Extras]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.professionalvisualstudio.com/blog/2007/11/19/building-castles-in-the-sand-part-i/</guid>
		<description><![CDATA[This is the first in a 3-part series on using the Sandcastle tools to produce great looking (and hopefully useful) internal documentation. In this post we cover the basics of Sandcastle and how to get up and running with it. Before we start, if you are not familiar with the XML commenting system then you [...]]]></description>
			<content:encoded><![CDATA[<p>This is the first in a 3-part series on using the <a href="http://www.sandcastledocs.com/" target="_blank">Sandcastle</a> tools to produce great looking (and hopefully useful) internal documentation. In this post we cover the basics of Sandcastle and how to get up and running with it.</p>
<p>Before we start, if you are not familiar with the XML commenting system then you should skim <a href="http://msdn.microsoft.com/msdnmag/issues/02/06/XMLC/" target="_blank">this primer</a>. Also, we won&#8217;t be discussing any of the XML comment tags &#8211; for background on the supported tags either check out this <a href="http://www.dynicity.com/products/XMLDocComments.aspx" target="_blank">excellent resource</a>, or wait for the Professional Visual Studio 2008 book <img src='http://www.professionalvisualstudio.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Sandcastle uses two mechanisms to gather the data it requires to produce the documentation. Firstly, it uses reflection to discover all the public types, methods, and properties in a source assembly. Secondly, it optionally integrates any XML documentation comments. So basically this means that you can generate basic documentation with no XML comments, and really great documentation with a bit of inline XML commenting.</p>
<p>Firstly, download and install the latest Sandcastle package (at the time of writing this was the October 2007 CTP) . You can find a link to download the latest Sandcastle installer package on the <a href="http://www.sandcastledocs.com/Wiki%20Pages/Where%20to%20get%20Sandcastle.aspx" target="_blank">Sandcastle Wiki</a>.</p>
<p>By default, Sandcastle installs to c:\Program Files\Sandcastle. When it is run, Sandcastle creates a large number of working files and the final output file under this directory. Unfortunately all files and folders under Program Files require administrator permissions to write to, which can be problematic particularly if you are running on Windows Vista with UAC enabled. Therefore it is recommended that you install it to a location where your user account has write permissions.</p>
<p>Out of the box, Sandcastle is used from the command-line only. There are a number of third-parties who have put together<a href="http://www.sandcastledocs.com/Wiki%20Pages/Sandcastle%20GUIs%20from%20Community.aspx" target="_blank"> GUI interfaces for Sandcastle</a>.</p>
<p>To begin, open a Visual Studio 2008 Command Prompt and change directory to <em>&lt;Sandcastle_Install_Directory&gt;</em>\Examples\sandcastle\.</p>
<p>In this directory you will find an example class file, test.cs, and an MSBuild project file, build.proj. The example class file contains methods and properties that are commented with all of the standard XML comment tags. You can compile the class file and generate the XML documentation file by entering the command:</p>
<p><code>csc /t:library test.cs /doc:example.xml</code></p>
<p>Once that has completed, we are now ready to generate the documentation help file. The simplest way to do this is to execute the example MSBuild project file that ships with Sandcastle. This project file has been hard-coded to generate the documentation using test.dll and example.xml. Run the MSBuild project by entering the command:</p>
<p><code>msbuild build.proj</code></p>
<p>The MSBuild project will call a several Sandcastle tools to build the documentation file including MRefBuilder, BuildAssembler, and XslTransform.</p>
<p>You may be surprised at how long the documentation takes to generate. This is partly because the MRefBuilder tool uses reflection to inspect the assembly and all dependant assemblies to obtain information about all of the types, properties, and methods in the assembly and all dependant assemblies. In addition, anytime it comes across a base .NET Framework type, it will attempt to resolve it to the MSDN online documentation in order to generate the correct hyperlinks in the documentation help file.</p>
<p>The first time you run the MSBuild project, it will generate reflection data for all of the .NET Framework classes, so you can expect it to take even longer to complete.</p>
<p>By default, the build.proj MSBuild project generates the documentation in compiled help (CHM) format as shown below.</p>
<p><img src="http://www.professionalvisualstudio.com/blog/wp-content/uploads/2007/11/sandcastlechm.jpg" alt="CHM Help file produced by Sandcastle" /></p>
<p>This post covered the basics of Sandcastle and how to get up and running with it and generate a CHM documentation file.</p>
<p><a href="http://www.professionalvisualstudio.com/blog/2007/12/09/building-castles-in-the-sand-part-ii/">Part II</a> provides an overview of the Sandcastle template system, which is what controls the look-and-feel of the final documentation.</p>
<p>Part III will cover how to generate documentation in the Microsoft Help 2 (HxS) format, which is the format that the Visual Studio help system uses.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.professionalvisualstudio.com/blog/2007/11/19/building-castles-in-the-sand-part-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

