<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Visual Studio on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/visual-studio/</link>
    <description>Recent content in Visual Studio on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 26 Jan 2020 07:40:29 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/visual-studio/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Enforcing C# EditorConfig formatting conventions at build time</title>
      <link>https://www.strathweb.com/2020/01/enforcing-c-editorconfig-formatting-conventions-at-build-time/</link>
      <pubDate>Sun, 26 Jan 2020 07:40:29 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2020/01/enforcing-c-editorconfig-formatting-conventions-at-build-time/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://docs.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2019&#34;&gt;EditorConfig&lt;/a&gt; is an excellent way to enforce stylistic rules on your C# projects. However, the rules and their corresponding IDExxxx diagnostics are only enforced in the editor, such as Visual Studio or VS Code with OmniSharp, but not at build time.&lt;/p&gt;
&lt;p&gt;While there are &lt;a href=&#34;https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference?view=vs-2019#convention-categories&#34;&gt;various&lt;/a&gt; categories of EditorConfig conventions that you can use, in this post, I will show you how to enforce the formatting conventions (IDE0055) at build time.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Enabling C# 7 Features in Visual Studio “15” Preview</title>
      <link>https://www.strathweb.com/2016/03/enabling-c-7-features-in-visual-studio-15-preview/</link>
      <pubDate>Thu, 31 Mar 2016 02:16:25 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2016/03/enabling-c-7-features-in-visual-studio-15-preview/</guid>
      <description>&lt;p&gt;Yesterday, at Build, Microsoft released the &lt;a href=&#34;https://www.visualstudio.com/news/vs15-preview-vs&#34;&gt;first public preview of Visual Studio &amp;ldquo;15&amp;rdquo;&lt;/a&gt; - the next iteration of Visual Studio.&lt;/p&gt;
&lt;p&gt;One of the main reasons why you&amp;rsquo;d want to try it out already is to be able to use some of the heralded C# 7 features - such as binary literals, local functions or pattern matching (to name just a few).&lt;/p&gt;
&lt;p&gt;It&amp;rsquo;s been possible to test out these features in a slightly hacky way before (&lt;a href=&#34;https://joshvarty.wordpress.com/2016/02/10/lrn-quick-tip-how-to-test-out-c-7-features-with-roslyn/&#34;&gt;see Josh&amp;rsquo;s post&lt;/a&gt;) - by building Roslyn from source and deploying it into VS using the CompilerExtension VSIX, but of course it&amp;rsquo;s much easier and convenient to just use C# 7 features directly in VS &amp;ldquo;15&amp;rdquo; now.&lt;/p&gt;
&lt;p&gt;In this post I&amp;rsquo;m gonna show you how to enable the experimental C# 7 features - because they are by default not available.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Run your favorite unit testing GUI directly from Visual Studio</title>
      <link>https://www.strathweb.com/2012/07/run-your-favorite-unit-testing-gui-directly-from-visual-studio/</link>
      <pubDate>Mon, 02 Jul 2012 21:09:35 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2012/07/run-your-favorite-unit-testing-gui-directly-from-visual-studio/</guid>
      <description>&lt;p&gt;If you are working a lot with unit tests and somehow are allergic to command line testing (I, for one, am) there is an easy way to configure your test project&amp;rsquo;s build to start your favorite&amp;rsquo;s library GUI automatically and load the test assembly into it.&lt;/p&gt;
&lt;p&gt;This is very convenient and, as a bonus, allows you to set breakpoints in the test code, without having to attach to any processes.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s have a quick look at how you can do that for xUnit and nUnit.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>LINQ foreach iteration variable capturing and how it’s fixed in Visual Studio 11</title>
      <link>https://www.strathweb.com/2012/03/linq-foreach-iteration-variable-capturing-and-how-its-fixed-in-visual-studio-11/</link>
      <pubDate>Fri, 16 Mar 2012 10:02:31 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2012/03/linq-foreach-iteration-variable-capturing-and-how-its-fixed-in-visual-studio-11/</guid>
      <description>&lt;p&gt;A while a go, the C# community got surprised by another &lt;a href=&#34;http://en.wikipedia.org/wiki/Gotcha_(programming)&#34; target=&#34;_blank&#34;&gt;GOTCHA&lt;/a&gt;, discovering that using a foreach iteration variable inside a LINQ query, may not always yield the expected results. The variable gets captured by the foreach loop and, due to the evil work of &lt;a href=&#34;http://en.wikipedia.org/wiki/Closure_(computer_science)&#34; target=&#34;_blank&#34;&gt;closure&lt;/a&gt;, it remains scoped outside of the LINQ query itself living its own life so to speak. This has now been corrected in the Visual Studio 11 Beta.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
