<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Michael Pedersen's Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/mpeder/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/mpeder/feed.xml</link>
    <description>Notes from the life of an Application Development Consultant</description>
    <lastBuildDate>Thu, 10 Mar 2016 13:39:19 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>New to VS 2015 and TFS 2015? Check out these great blog posts!</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/new-to-vs-2015-and-tfs-2015-check-out-these-great-blog-posts</link>
      <pubDate>Tue, 18 Aug 2015 01:42:28 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2015/08/18/new-to-vs-2015-and-tfs-2015-check-out-these-great-blog-posts/</guid>
      <description><![CDATA[About to upgrade to the latest TFS 2015 - be sure to read...]]></description>
      <content:encoded><![CDATA[<p>About to upgrade to the latest TFS 2015 - be sure to read these:</p>
<ul>
<li><a href="https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/06/new-elements-of-tfs-2015-that-influence-an-upgrade.aspx">https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/06/new-elements-of-tfs-2015-that-influence-an-upgrade.aspx</a></li>
<li><a href="https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/07/short-lead-checklist.aspx">https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/07/short-lead-checklist.aspx</a></li>
<li><a href="https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/10/long-lead-preparations.aspx">https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/10/long-lead-preparations.aspx</a></li>
<li><a href="https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/10/long-lead-checklist.aspx">https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/10/long-lead-checklist.aspx</a></li>
<li><a href="https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/11/post-upgrade-checklist-draft.aspx">https://blogs.msdn.com/b/visualstudioalmrangers/archive/2015/08/11/post-upgrade-checklist-draft.aspx</a></li>
<li><a href="https://msdn.microsoft.com/en-us/Library/vs/alm/TFS/upgrade/upgrade">https://msdn.microsoft.com/en-us/Library/vs/alm/TFS/upgrade/upgrade</a></li>
</ul>
<p>Installing VS 2015 soon? Check out this post and KB:</p>
<ul>
<li><a href="https://blogs.msdn.com/b/visualstudio/archive/2015/08/07/visual-studio-2015-faq.aspx">https://blogs.msdn.com/b/visualstudio/archive/2015/08/07/visual-studio-2015-faq.aspx</a></li>
<li><a href="https://support.microsoft.com/en-us/kb/3025135">https://support.microsoft.com/en-us/kb/3025135</a></li>
</ul>
<p>Looking into the new build system in TFS 2015 - here are some documentation</p>
<ul>
<li><a href="https://msdn.microsoft.com/en-us/Library/vs/alm/build/overview">https://msdn.microsoft.com/en-us/Library/vs/alm/build/overview</a></li>
</ul>
<p>Enjoy!</p>]]></content:encoded>
    </item>
    <item>
      <title>Visual Studio ALM Rangers</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/visual-studio-alm-rangers</link>
      <pubDate>Mon, 30 Mar 2015 23:23:33 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2015/03/30/visual-studio-alm-rangers/</guid>
      <description><![CDATA[Just joined the awesome Visual Studio ALM Ranger:...]]></description>
      <content:encoded><![CDATA[<p>Just joined the awesome Visual Studio ALM Ranger: <a href="https://blogs.msdn.com/b/willy-peter_schaub/archive/2015/03/30/introducing-the-visual-studio-alm-rangers-michael-pedersen.aspx">https://blogs.msdn.com/b/willy-peter_schaub/archive/2015/03/30/introducing-the-visual-studio-alm-rangers-michael-pedersen.aspx</a></p>
<p>Who are the Visual Studio ALM Rangers: <a href="https://aka.ms/vsarunderstand">https://aka.ms/vsarunderstand</a></p>
<p>Check the great work they do here: <a href="https://aka.ms/vsarsolutions">https://aka.ms/vsarsolutions</a> and here: <a href="https://blogs.msdn.com/b/willy-peter_schaub/archive/2012/06/05/toc-alm-rangers-msdn-magazine-and-other-publications.aspx">https://blogs.msdn.com/b/willy-peter_schaub/archive/2012/06/05/toc-alm-rangers-msdn-magazine-and-other-publications.aspx</a>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Team Foundation Build vNext (2015)</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/team-foundation-build-vnext-2015</link>
      <pubDate>Tue, 10 Mar 2015 11:22:47 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2015/03/10/team-foundation-build-vnext-2015/</guid>
      <description><![CDATA[You can get some great insight into what is happening with build in TFS vNext here:...]]></description>
      <content:encoded><![CDATA[<p>You can get some great insight into what is happening with build in TFS vNext here:</p>  <p><a title="https://vsalmdocs.azurewebsites.net/tfs/build" href="https://vsalmdocs.azurewebsites.net/tfs/build">https://vsalmdocs.azurewebsites.net/tfs/build</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Advanced settings for AppPool for Azure websites</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/advanced-settings-for-apppool-for-azure-websites</link>
      <pubDate>Tue, 24 Feb 2015 23:49:17 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2015/02/24/advanced-settings-for-apppool-for-azure-websites/</guid>
      <description><![CDATA[&#160;  There are at least two options if you need configure more advanced setting for the AppPool...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>There are at least two options if you need configure more advanced setting for the AppPool on an Azure website:</p>  <ol>   <li>You can define triggers and actions for Azure web sites: <a href="https://azure.microsoft.com/blog/2014/02/06/auto-healing-windows-azure-web-sites">https://azure.microsoft.com/blog/2014/02/06/auto-healing-windows-azure-web-sites</a>&#160;</li>    <li>ConfigureRemote Admin: <a href="https://blogs.msdn.com/b/benjaminperkins/archive/2014/08/05/configure-remote-iis-administration-for-microsoft-azure-web-sites.aspx">https://blogs.msdn.com/b/benjaminperkins/archive/2014/08/05/configure-remote-iis-administration-for-microsoft-azure-web-sites.aspx</a>. Then you connect to it directly in IIS Management Console from Windows Server.</li> </ol>]]></content:encoded>
    </item>
    <item>
      <title>HTTP/2 – What is it?</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/http2-what-is-it</link>
      <pubDate>Thu, 08 Jan 2015 05:00:20 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2015/01/08/http2-what-is-it/</guid>
      <description><![CDATA[You can find a brief description here:...]]></description>
      <content:encoded><![CDATA[<p>You can find a brief description here: <a title="https://blogs.msdn.com/b/ie/archive/2014/10/08/http-2-the-long-awaited-sequel.aspx" href="https://blogs.msdn.com/b/ie/archive/2014/10/08/http-2-the-long-awaited-sequel.aspx">https://blogs.msdn.com/b/ie/archive/2014/10/08/http-2-the-long-awaited-sequel.aspx</a>. It also describes how you can already try HTTP/2 by using IE in the Windows 10 Technical Preview.</p>]]></content:encoded>
    </item>
    <item>
      <title>Analyze .NET Portability – New Tool</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/analyze-net-portability-new-tool</link>
      <pubDate>Fri, 05 Dec 2014 03:54:05 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2014/12/05/analyze-net-portability-new-tool/</guid>
      <description><![CDATA[Microsoft just released a new tool for analyzing .NET Portability. Use e.g. when considering reusing...]]></description>
      <content:encoded><![CDATA[<p>Microsoft just released a new tool for analyzing .NET Portability. Use e.g. when considering reusing code in connection with Xamarin.<p>Check it out here: <a title="https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b" href="https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b">https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b</a></p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Visual Studio Online (TFS as a Service) – What you need to know to get started</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/visual-studio-online-tfs-as-a-service-what-you-need-to-know-to-get-started</link>
      <pubDate>Mon, 20 Oct 2014 12:03:18 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2014/10/20/visual-studio-online-tfs-as-a-service-what-you-need-to-know-to-get-started/</guid>
      <description><![CDATA[You may already have an account, but before moving your company&rsquo;s code, work items etc. it is...]]></description>
      <content:encoded><![CDATA[<p>You may already have an account, but before moving your company&rsquo;s code, work items etc. it is important to know what is possible and what the terms and conditions are. Below I have collected some important links:<p>Introduction:   <br><a title="https://azure.microsoft.com/en-us/services/visual-studio-online/" href="https://azure.microsoft.com/en-us/services/visual-studio-online/">https://azure.microsoft.com/en-us/services/visual-studio-online/</a>    <br><a title="https://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx" href="https://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx">https://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx</a></p><p>Pricing:   <br><a title="https://azure.microsoft.com/en-us/pricing/details/visual-studio-online/" href="https://azure.microsoft.com/en-us/pricing/details/visual-studio-online/">https://azure.microsoft.com/en-us/pricing/details/visual-studio-online/</a></p><p>Features Timeline:   <br><a title="https://www.visualstudio.com/news/release-archive-vso" href="https://www.visualstudio.com/news/release-archive-vso">https://www.visualstudio.com/news/release-archive-vso</a></p><p>SLA &amp; Terms of Service:   <br><a href="https://www.microsoft.com/en-us/download/details.aspx?id=42290">https://www.microsoft.com/en-us/download/details.aspx?id=42290</a>    <br><a href="https://www.visualstudio.com/en-us/support/terms-of-service-vs.aspx">https://www.visualstudio.com/en-us/support/terms-of-service-vs.aspx</a>    <br><a title="https://blogs.msdn.com/b/bharry/archive/2013/10/14/how-do-you-measure-quality-of-a-service.aspx" href="https://blogs.msdn.com/b/bharry/archive/2013/10/14/how-do-you-measure-quality-of-a-service.aspx">https://blogs.msdn.com/b/bharry/archive/2013/10/14/how-do-you-measure-quality-of-a-service.aspx</a></p><p>Status &amp; Support:   <br><a title="https://blogs.msdn.com/b/vsoservice/" href="https://blogs.msdn.com/b/vsoservice/">https://blogs.msdn.com/b/vsoservice/</a>    <br><a title="https://www.visualstudio.com/support/support-overview-vs" href="https://www.visualstudio.com/support/support-overview-vs">https://www.visualstudio.com/support/support-overview-vs</a></p><p>Migrating:   <br><a title="https://www.visualstudio.com/en-us/get-started/migrate-team-projects-vs.aspx" href="https://www.visualstudio.com/en-us/get-started/migrate-team-projects-vs.aspx">https://www.visualstudio.com/en-us/get-started/migrate-team-projects-vs.aspx</a></p><p>Users and Azure AD:   <br><a href="https://www.visualstudio.com/get-started/manage-organization-access-for-your-account-vs">https://www.visualstudio.com/get-started/manage-organization-access-for-your-account-vs</a></p><p>Integration &amp; Service Hooks:   <br><a href="https://www.visualstudio.com/integrate/">https://www.visualstudio.com/integrate/</a>    <br><a href="https://www.visualstudio.com/en-us/integrate/reference/reference-vso-hooks-overview-vsi">https://www.visualstudio.com/en-us/integrate/reference/reference-vso-hooks-overview-vsi</a>    <br><a href="https://www.visualstudio.com/en-us/integrate/explore/explore-vso-vsi.aspx">https://www.visualstudio.com/en-us/integrate/explore/explore-vso-vsi.aspx</a>    <br><a href="https://blogs.msdn.com/b/slange/archive/2014/08/26/send-email-to-a-team-room-with-vso-service-hooks-and-zapier.aspx">https://blogs.msdn.com/b/slange/archive/2014/08/26/send-email-to-a-team-room-with-vso-service-hooks-and-zapier.aspx</a>    <br><a href="https://www.visualstudio.com/integrate/reference/reference-vso-overview-vsi">https://www.visualstudio.com/integrate/reference/reference-vso-overview-vsi</a>    <br><a title="https://www.visualstudio.com/en-us/get-started/integrating-with-service-hooks-vs" href="https://www.visualstudio.com/en-us/get-started/integrating-with-service-hooks-vs">https://www.visualstudio.com/en-us/get-started/integrating-with-service-hooks-vs</a></p><p>Backup:   <br>Visual Studio Online utilize SQL Azure, which provides High-Availability and Disaster-Recovery. This is described here <a title="https://msdn.microsoft.com/en-us/library/azure/jj650016.aspx" href="https://msdn.microsoft.com/en-us/library/azure/jj650016.aspx">https://msdn.microsoft.com/en-us/library/azure/jj650016.aspx</a></p><p>Test &amp; Build &ndash; On Premise:   <br>If you don&rsquo;t want to or cant use the build &amp; test features provided by the service you can connect from both on-premise build and test controllers: <a href="https://nakedalm.com/connect-a-test-controller-to-team-foundation-service/">https://nakedalm.com/connect-a-test-controller-to-team-foundation-service/</a> and <a href="https://myalmblog.com/2014/04/configuring-on-premises-build-server-for-visual-studio-online/">https://myalmblog.com/2014/04/configuring-on-premises-build-server-for-visual-studio-online/</a></p><p>Feel free to suggest more and I will add them :-)</p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Free ebooks from Microsoft Press</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/free-ebooks-from-microsoft-press</link>
      <pubDate>Sun, 12 Oct 2014 04:52:00 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2014/10/12/free-ebooks-from-microsoft-press/</guid>
      <description><![CDATA[Be sure to check out https://www.microsoftvirtualacademy.com/ebooks! A lot of awesome and free...]]></description>
      <content:encoded><![CDATA[<p>Be sure to check out <a title="https://www.microsoftvirtualacademy.com/ebooks" href="https://www.microsoftvirtualacademy.com/ebooks">https://www.microsoftvirtualacademy.com/ebooks</a>! A lot of awesome and free books.<p>While there you might want also want take a look at the free courses: <a href="https://www.microsoftvirtualacademy.com/Studies/SearchResult.aspx">https://www.microsoftvirtualacademy.com/Studies/SearchResult.aspx</a></p><p><img src="https://davevoyles.azurewebsites.net/wp-content/uploads/2014/10/mva-logo.png"></p></p>
]]></content:encoded>
    </item>
    <item>
      <title>Convert SID to User Name using PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/convert-sid-to-user-name-using-powershell</link>
      <pubDate>Tue, 07 Oct 2014 03:20:26 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2014/10/07/convert-sid-to-user-name-using-powershell/</guid>
      <description><![CDATA[Create a SecurityIdentifier object and translate into a NTAccount:      1:  $objSID = New-Object...]]></description>
      <content:encoded><![CDATA[<p>Create a SecurityIdentifier object and translate into a NTAccount:<div class="csharpcode">   <pre class="alt"><span class="lnum">   1:  </span>$objSID = New-Object System.Security.Principal.SecurityIdentifier </pre>

  <pre><span class="lnum">   1:  </span>   (<span class="str">"S-1-5-21-3496554487-1900509739-3140548133-500"</span>)</pre>

  <pre class="alt"><span class="lnum">   2:  </span>$objUser = $objSID.Translate( [System.Security.Principal.NTAccount])</pre>

  <pre><span class="lnum">   3:  </span>$objUser.Value</pre>
</div></p><!-- code formatted by https://manoli.net/csharpformat/ -->
]]></content:encoded>
    </item>
    <item>
      <title>Detecting OS &amp; IE Version in (C#) Coded UI Tests</title>
      <link>https://docs.microsoft.com/archive/blogs/mpeder/detecting-os-ie-version-in-c-coded-ui-tests</link>
      <pubDate>Tue, 30 Sep 2014 03:29:49 GMT</pubDate>
      <dc:creator><![CDATA[Michael Bach Pedersen]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/mpeder/2014/09/30/detecting-os-ie-version-in-c-coded-ui-tests/</guid>
      <description><![CDATA[Using ProcessStartInfo and ApplicationUnderTest.Launch(ProcessStartInfo startInfo) you can...]]></description>
      <content:encoded><![CDATA[<div class="csharpcode">   <p></p> <p>Using <a href="https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo(v=vs.110).aspx">ProcessStartInfo</a> and <a href="https://msdn.microsoft.com/en-us/library/dd419605.aspx">ApplicationUnderTest.Launch(ProcessStartInfo startInfo)</a> you can launch a process under another user, but this will not work for Coded UI Tests in IE because you cannot access the DOM inside IE. Instead you can use the approach described there: <a title="https://blogs.msdn.com/b/siddharthapandey/archive/2009/12/13/testing-webpages-that-uses-windows-authentication-for-different-credentials.aspx" href="https://blogs.msdn.com/b/siddharthapandey/archive/2009/12/13/testing-webpages-that-uses-windows-authentication-for-different-credentials.aspx">https://blogs.msdn.com/b/siddharthapandey/archive/2009/12/13/testing-webpages-that-uses-windows-authentication-for-different-credentials.aspx</a></p><p>As mentioned the login dialog is different depending on Windows version. There might also be other situation where you want know the OS and/or IE version. </p><p>You can detect OS the Windows version in C# like this using <a href="https://msdn.microsoft.com/en-us/library/system.environment.osversion(v=vs.110).aspx">Environment.OSVersion</a>: </p><div class="csharpcode">   <pre class="alt"><span class="lnum">   1:  </span><span class="kwrd">string</span> ver = <span class="str">"0.0.0.0"</span>;</pre>

  <pre><span class="lnum">   2:  </span>ver = Environment.OSVersion.ToString();</pre>

  <pre class="alt"><span class="lnum">   3:  </span>            </pre>

  <pre><span class="lnum">   4:  </span><span class="kwrd">switch</span> (ver)</pre>

  <pre class="alt"><span class="lnum">   5:  </span>{</pre>

  <pre><span class="lnum">   6:  </span>   <span class="kwrd">default</span>:</pre>

  <pre class="alt"><span class="lnum">   7:  </span>     <span class="rem">//Do clever stuff based on the version number</span></pre>

  <pre><span class="lnum">   8:  </span>     <span class="kwrd">break</span>;</pre>

  <pre class="alt"><span class="lnum">   9:  </span>}</pre>

  <pre><span class="lnum">  10:  </span>&nbsp;</pre>

  <pre class="alt"><span class="lnum">  11:  </span>TestContext.WriteLine(<span class="str">"OS Version Detected was: "</span> + ver);</pre>
</div><p>Test output:
  <br><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/62/59/metablogapi/6663.image_03D66CAE.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-62-59-metablogapi/6663.image_5F00_03D66CAE.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/62/59/metablogapi/5040.image_thumb_6CAAF22F.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-62-59-metablogapi/5040.image_5F00_thumb_5F00_6CAAF22F.png" width="244" height="113"></a> </p><p>The IE version can be found using the <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser(v=vs.110).aspx">WebBrowser</a> class:</p><div class="csharpcode">
  <pre class="alt"><span class="lnum">   1:  </span><span class="kwrd">string</span> ver = <span class="str">"0.0.0.0"</span>;</pre>

  <pre><span class="lnum">   2:  </span><span class="kwrd">using</span> (WebBrowser wb = <span class="kwrd">new</span> WebBrowser())</pre>

  <pre class="alt"><span class="lnum">   3:  </span>{</pre>

  <pre><span class="lnum">   4:  </span>   ver = wb.Version.ToString();</pre>

  <pre class="alt"><span class="lnum">   5:  </span>}</pre>

  <pre><span class="lnum">   6:  </span>&nbsp;</pre>

  <pre class="alt"><span class="lnum">   7:  </span><span class="kwrd">switch</span> (ver)</pre>

  <pre><span class="lnum">   8:  </span>{</pre>

  <pre class="alt"><span class="lnum">   9:  </span>   <span class="kwrd">default</span>:</pre>

  <pre><span class="lnum">  10:  </span>    <span class="rem">//Do clever stuff based on the version number</span></pre>

  <pre class="alt"><span class="lnum">  11:  </span>    <span class="kwrd">break</span>;</pre>

  <pre><span class="lnum">  12:  </span>}</pre>

  <pre class="alt"><span class="lnum">  13:  </span>&nbsp;</pre>

  <pre><span class="lnum">  14:  </span>TestContext.WriteLine(<span class="str">"IE Version Detected was: "</span> + ver);</pre>
</div><p></p><p>Test output:
  <br><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/62/59/metablogapi/8875.image_0777183C.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-62-59-metablogapi/8875.image_5F00_0777183C.png"><img title="image" style="border-top: 0px; border-right: 0px; border-bottom: 0px; border-left: 0px; display: inline" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/62/59/metablogapi/6661.image_thumb_29627AC0.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-62-59-metablogapi/6661.image_5F00_thumb_5F00_29627AC0.png" width="244" height="167"></a></p></div><!-- code formatted by https://manoli.net/csharpformat/ --><!-- code formatted by https://manoli.net/csharpformat/ -->
]]></content:encoded>
    </item>
  </channel>
</rss>