<?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>dotnet thoughts &#187; Miscellaneous</title>
	<atom:link href="http://www.dotnetthoughts.net/category/miscellaneous/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:18:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to create your own custom Accelerator for Internet Explorer</title>
		<link>http://www.dotnetthoughts.net/2012/01/29/how-to-create-your-own-custom-accelerator-for-internet-explorer/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/29/how-to-create-your-own-custom-accelerator-for-internet-explorer/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 03:07:49 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Accelerator]]></category>
		<category><![CDATA[IE 8]]></category>
		<category><![CDATA[IE 9]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2323</guid>
		<description><![CDATA[The Accelerator feature of the IE helps to quickly perform everyday browsing tasks without leaving the website. Simply highlight the text, click on the blue Accelerator icon that appears above your selection, it will popup the different Accelerator options. For &#8230; <a href="http://www.dotnetthoughts.net/2012/01/29/how-to-create-your-own-custom-accelerator-for-internet-explorer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The Accelerator feature of the IE helps to quickly perform everyday browsing tasks without leaving the website. Simply highlight the text, click on the blue Accelerator icon that appears above your selection, it will popup the different Accelerator options. For example, with the &#8220;Map with Bing&#8221; Accelerator in Internet Explorer, you can get an in-place view of a map displayed directly on the page.</p>
<p>In this example, I am creating an Accelerator for searching StackOverflow.com. The Accelerator is simply an XML file, you can find more details about this XML specification <a href="http://msdn.microsoft.com/en-us/library/cc289775%28VS.85%29.aspx">here</a></p>
<p>Here is the implementation</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
&lt;openServiceDescription xmlns=&quot;http://www.microsoft.com/schemas/openservicedescription/1.0&quot;&gt;
&lt;homepageUrl&gt;http://www.stackoverflow.com/&lt;/homepageUrl&gt;
&lt;display&gt;
	&lt;name&gt;Search with Stackoverflow&lt;/name&gt;
	&lt;icon&gt;http://sstatic.net/stackoverflow/img/favicon.ico&lt;/icon&gt;
    &lt;description&gt;Search with Stackoverflow&lt;/description&gt;
&lt;/display&gt;  

&lt;activity category=&quot;Search&quot;&gt;
	&lt;activityAction context=&quot;selection&quot;&gt;
		&lt;execute method=&quot;get&quot; action=&quot;http://stackoverflow.com/search?q=&quot;&gt;
			&lt;parameter name=&quot;q&quot; value=&quot;{selection}&quot; type=&quot;text&quot; /&gt;
		&lt;/execute&gt;
	&lt;/activityAction&gt;
&lt;/activity&gt;
&lt;/openServiceDescription&gt;
</pre>
<p>Also you require a HTML file to install the Accelerator to IE. It will use <a href="http://msdn.microsoft.com/en-us/library/cc289789%28VS.85%29.aspx">window.external.AddService</a> method. Here is the HTML file.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Add SO Search Accelerator&lt;/title&gt;
    &lt;meta content=&quot;text/html; charset=windows-1255&quot; http-equiv=&quot;Content-Type&quot;/&gt;
    &lt;meta name=&quot;GENERATOR&quot; content=&quot;MSHTML 8.00.6001.18372&quot;/&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;button id=&quot;myButton&quot;
   onclick=&quot;window.external.AddService('http://localhost/installs/search_so.xml')&quot;&gt;
                        Press to add SO Search Accelerator&lt;/button&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Pressing on the button will popup, an Add Accelerator dialog, click on Add button, which will add the accelerator to your browser.</p>
<div id="attachment_2325" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2325" title="Add Accelerator Dialog" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/add_so_addon-300x218.jpg" alt="Add Accelerator Dialog" width="300" height="218" /><p class="wp-caption-text">Add Accelerator Dialog</p></div>
<p>And here is the Accelerator in action.</p>
<div id="attachment_2326" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2326" title="Accelerator in Action" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/so_addon_action-300x111.jpg" alt="Accelerator in Action" width="300" height="111" /><p class="wp-caption-text">Accelerator in Action</p></div>
<p>Happy Coding <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="betterrelated none"><p>No related content found.</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/29/how-to-create-your-own-custom-accelerator-for-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to write an NUnit Addin</title>
		<link>http://www.dotnetthoughts.net/2012/01/23/how-to-write-an-nunit-addin/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/23/how-to-write-an-nunit-addin/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 04:51:09 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[NUnit]]></category>
		<category><![CDATA[NUnit AddIn]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2309</guid>
		<description><![CDATA[From version 2.2.x NUnit supports AddIns. Addins can customize NUnit’s internal behavior such as the creation of tests and their execution. An Addin should to implement the interface NUnit.Core.Extensibility.IAddin, which can be found in the assembly nunit.core.interfaces. Also the NUnit.Core.Extensibility.NUnitAddinAttribute &#8230; <a href="http://www.dotnetthoughts.net/2012/01/23/how-to-write-an-nunit-addin/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">From version 2.2.x NUnit supports AddIns. Addins can customize NUnit’s internal behavior such as the creation of tests and their execution. An Addin should to implement the interface <em>NUnit.Core.Extensibility.IAddin</em>, which can be found in the assembly <em>nunit.core.interfaces</em>. Also the <em>NUnit.Core.Extensibility.NUnitAddinAttribute</em> must be applied to Addin class. The attribute parameters Name and Description represent the name of the extension and a description of what it does. The NUnit.Core.Extensibility.IAddin has only one method, Install(). The Install method is called by each host for which the addin has specified an ExtensionType. The addin should check that the necessary extension points are available and install itself, returning true for success or false for failure to install. The method will be called once for each extension host and &#8211; for Core extensions &#8211; each time a new test domain is loaded. Here is a minimal addin.</p>
<pre class="brush: csharp; title: ; notranslate">
namespace SampleAddIn
{
    using NUnit.Core.Extensibility;

    [NUnitAddin(Name = &quot;SampleAddIn&quot;, Description = &quot;This is a Sample AddIn&quot;)]
    public class SampleNUnitAddin : IAddin
    {
        #region IAddin Members

        public bool Install(IExtensionHost host)
        {
            return true;
        }

        #endregion
    }
}
</pre>
<p>You can install the Addin, by copying the assembly to bin\Addins folder, relative to NUnit installation directory. You can verify your addin by starting NUnit, Tools &gt; Addins menu.</p>
<div id="attachment_2311" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-2311" title="Registered AddIns Dialog" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/nunit_addin-300x258.jpg" alt="Registered AddIns Dialog" width="300" height="258" /><p class="wp-caption-text">Registered AddIns Dialog</p></div>
<p>This Addin does nothing. It simply registers itself to NUnit. You can more details about NUnit Addins <a href="http://nunit.org/index.php?p=nunitAddins&amp;r=2.6">here</a><br />
If you are using VS2010, then please make sure your target framework is .Net 2.0. Otherwise Addin won&#8217;t work.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/01/05/how-to-compare-equality-between-two-objects-in-nunit/" title="Permanent link to How to compare equality between two objects in NUnit">How to compare equality between two objects in NUnit</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/11/02/debugging-nunit-tests-in-visual-studio-2010/" title="Permanent link to Debugging NUnit Tests in Visual Studio 2010">Debugging NUnit Tests in Visual Studio 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/23/how-to-do-code-coverage-with-nunit-tests/" title="Permanent link to How to do code coverage with NUnit tests">How to do code coverage with NUnit tests</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/15/how-to-integrate-nunit-with-visual-studio-2008/" title="Permanent link to How to integrate Nunit with Visual Studio 2008">How to integrate Nunit with Visual Studio 2008</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/09/25/getting-code-coverage-using-open-cover-and-nunit/" title="Permanent link to Getting Code coverage using Open Cover and NUnit">Getting Code coverage using Open Cover and NUnit</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/23/how-to-write-an-nunit-addin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cloak option missing from source control explorer context menu</title>
		<link>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:57:34 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Cloak]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2233</guid>
		<description><![CDATA[Ever noticed some time cloak menu item missing from source control explorer context menu? Cloak option is missing from source control explorer context menu Cloaking used to prevent users from viewing specified workspace folders or for folders you do not &#8230; <a href="http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever noticed some time cloak menu item missing from source control explorer context menu?</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_2235" class="wp-caption aligncenter" style="width: 255px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-2235" title="Cloak option is missing from source control explorer context menu" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/clock_option_missing1.jpg" alt="Cloak option is missing from source control explorer context menu" width="245" height="121" /></dt>
<dd class="wp-caption-dd">Cloak option is missing from source control explorer context menu</dd>
</dl>
</div>
<p style="text-align: justify;">Cloaking used to prevent users from viewing specified workspace folders or for folders you do not currently need. Cloaking is useful when you are working with files from two or more branches under a common parent to prevent you from copying files unnecessarily. Finally, cloaking increases performance bandwidth and conserves local disk space by preventing folders and files not used currently from being copied to the local working folder. Today I noticed that I am missing the cloak option for a specific folder. I couldn&#8217;t find the reason, because it available for another Folder in same workspace. Later I found that it was because of the mapping of local and source folder are different. Like my TFS path was $Projects/System/Data/Binaries, it should be mapped to C:\Projects\System\Data\Binaries, but I was mapped to some other folder like C:\Projects\System\Data\DataBinaries. And then I changed it via File &gt; Source Control &gt; Workspaces option. After this I got the cloak option. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_2234" class="wp-caption aligncenter" style="width: 252px"><img class="size-full wp-image-2234" title="Cloak option of Source control explorer conext menu" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/clock_option_missing.jpg" alt="Cloak option of Source control explorer conext menu" width="242" height="117" /><p class="wp-caption-text">Cloak option of Source control explorer conext menu</p></div>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/02/21/how-to-store-tfs-credentials/" title="Permanent link to How to store TFS credentials">How to store TFS credentials</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/" title="Permanent link to TFS Build Notification Tool">TFS Build Notification Tool</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/02/28/controls-toolbox-not-showing-in-visual-studio-2010/" title="Permanent link to Controls Toolbox not showing in Visual Studio 2010">Controls Toolbox not showing in Visual Studio 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/" title="Permanent link to Changing the diff program used by Visual Studio">Changing the diff program used by Visual Studio</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/" title="Permanent link to Open Visual Studio Files As Administrator">Open Visual Studio Files As Administrator</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PSR &#8211; Problem Step Recorder &#8211; Free Windows Screen Recording tool</title>
		<link>http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/</link>
		<comments>http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 03:10:18 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Free Windows Screen Recording tool]]></category>
		<category><![CDATA[Problem Step Recorder]]></category>
		<category><![CDATA[PSR]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2113</guid>
		<description><![CDATA[Problem Step Recorder is a handy utility from Microsoft helps to automatically capture the steps you take on a computer, including a text description of where you clicked and a picture of the screen during each click (called a screen &#8230; <a href="http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Problem Step Recorder is a handy utility from Microsoft helps to automatically capture the steps you take on a computer, including a text description of where you clicked and a picture of the screen during each click (called a screen shot). Once you capture these steps, you can save them to a file that can be used by a support professional or someone else helping you with a computer problem. Click here for <a href="http://technet.microsoft.com/en-us/windows/dd320286">Problem Steps Recorder Overview</a>. You can launch psr from <em>Start Menu &gt; Run and type <strong>psr</strong></em>.</p>
<div class="betterrelated none"><p>No related content found.</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/11/30/psr-problem-step-recorder-free-windows-screen-recording-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MSTest.exe does not deploy all items</title>
		<link>http://www.dotnetthoughts.net/2011/11/22/mstest-exe-does-not-deploy-all-items/</link>
		<comments>http://www.dotnetthoughts.net/2011/11/22/mstest-exe-does-not-deploy-all-items/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 17:32:29 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[C#.Net]]></category>
		<category><![CDATA[DeploymentItem]]></category>
		<category><![CDATA[MSTes]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2102</guid>
		<description><![CDATA[Today while working on some regression build issues, me and my lead noticed one problem with MS Tests, we are running MSTest.exe from commandline to execute few tests. The problem was MSTest.exe was is not copying all the referenced assemblies &#8230; <a href="http://www.dotnetthoughts.net/2011/11/22/mstest-exe-does-not-deploy-all-items/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_2105" class="wp-caption alignleft" style="width: 310px"><a href="http://www.dotnetthoughts.net/2011/11/22/mstest-exe-does-not-deploy-all-items/mstest_commandline/" rel="attachment wp-att-2105"><img class="size-medium wp-image-2105" title="MS Test running command line" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/11/mstest_commandline-300x153.jpg" alt="MS Test running command line" width="300" height="153" /></a><p class="wp-caption-text">MS Test running command line</p></div>
<p style="text-align: justify;">Today while working on some regression build issues, me and my lead noticed one problem with MS Tests, we are running MSTest.exe from commandline to execute few tests. The problem was MSTest.exe was is not copying all the referenced assemblies to the Out folder, and this is causing failures. We initially thought the issue with commandline MSTest.exe, because all these test cases were running fine, when we run same using Visual Studio IDE. All the required assemblies are referenced to the test project, because of that we didn&#8217;t tried the DeploymentItem attribute. We tried the various MSTest commandline switches, but nothing worked. Later we found the issue, it was because of the referenced assemblies was not being used in the test. The problem fixed by creating instance of the all required assemblies in the test cases.</p>
<p style="text-align: justify;">Thanks to Raghu <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Happy unit testing.</p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2012/01/18/how-to-execute-ms-tests-in-parallel-on-multi-cpu-core-machines/" title="Permanent link to How to execute ms tests in parallel on multi-cpu / core machines">How to execute ms tests in parallel on multi-cpu / core machines</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/12/23/how-to-do-code-coverage-with-nunit-tests/" title="Permanent link to How to do code coverage with NUnit tests">How to do code coverage with NUnit tests</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/03/08/unit-test-adapter-threw-exception-unable-to-load-one-or-more-of-the-requested-types/" title="Permanent link to Unit Test Adapter threw exception &#8211; Unable to load one or more of the requested types">Unit Test Adapter threw exception &#8211; Unable to load one or more of the requested types</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/09/25/getting-code-coverage-using-open-cover-and-nunit/" title="Permanent link to Getting Code coverage using Open Cover and NUnit">Getting Code coverage using Open Cover and NUnit</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/09/21/how-measure-get-code-coverage-by-partcover-with-mstest/" title="Permanent link to How measure get code coverage by PartCover with MSTest">How measure get code coverage by PartCover with MSTest</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/11/22/mstest-exe-does-not-deploy-all-items/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

