<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Net 6 on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/net-6/</link>
    <description>Recent content in Net 6 on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 22 Jul 2022 09:29:35 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/net-6/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Subtle breaking change when adding DbContextPool Entity Framework Core 6</title>
      <link>https://www.strathweb.com/2022/07/subtle-breaking-change-when-adding-dbcontextpool-entity-framework-core-6/</link>
      <pubDate>Fri, 22 Jul 2022 09:29:35 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/07/subtle-breaking-change-when-adding-dbcontextpool-entity-framework-core-6/</guid>
      <description>&lt;p&gt;During the upgrade process of one of our applications from .NET Core 3.1 to .NET 6.0, I stumbled across a very subtle breaking changing when using the &lt;em&gt;AddDbContextPool()&lt;/em&gt; feature of EF Core. I thought it might be worthwhile to document this, in case someone else is troubled by it too.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Using an existing Startup class with ASP.NET 6 minimal hosting model</title>
      <link>https://www.strathweb.com/2022/02/using-an-existing-startup-class-with-asp-net-6-minimal-hosting-model/</link>
      <pubDate>Mon, 28 Feb 2022 17:28:36 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/02/using-an-existing-startup-class-with-asp-net-6-minimal-hosting-model/</guid>
      <description>&lt;p&gt;With the .NET Core 2.1 having reached end of life, and the looming end of life dates for .NET 5 (this spring) and .NET Core 3.1 (this fall), a lot of developers are facing migrating their services to .NET 6.0. Depending on the customization level and the sheer scale of your service ecosystem this may be an easy or relatively complicated task - especially if you would like to additionally tap into the new lightweight hosting model around &lt;em&gt;WebApplication&lt;/em&gt; type.&lt;/p&gt;
&lt;p&gt;A very low-cost, easy approach to this is to take advantage of the fact that one can easily reuse an existing &lt;em&gt;Startup&lt;/em&gt; class with the new hosting model too. This allows leaving most of the code intact, and performing only tiny refactorings around the host bootstrapping.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Hello OmniSharp on .NET 6.0!</title>
      <link>https://www.strathweb.com/2022/01/hello-omnisharp-on-net-6-0/</link>
      <pubDate>Mon, 31 Jan 2022 18:31:34 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2022/01/hello-omnisharp-on-net-6-0/</guid>
      <description>&lt;p&gt;On December 15, 2021 we &lt;a href=&#34;https://github.com/OmniSharp/omnisharp-roslyn/blob/master/CHANGELOG.md#1380&#34;&gt;released&lt;/a&gt; version 1.38.0 of OmniSharp which, for the first time, included .NET 6.0 builds of the OmniSharp server. The related feature branch was maintained for over a year, and previously contained a .NET 5-based variant of OmniSharp, though that one was never released.&lt;/p&gt;
&lt;p&gt;This is a big milestone in the OmniSharp project as the .NET 6.0 build is much faster and a lot more stable, and is the first step towards retiring the .NET Framework/Mono builds of OmniSharp.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>dotnet-script 1.3 is out with .NET 6.0 support</title>
      <link>https://www.strathweb.com/2021/11/dotnet-script-1-3-is-out-with-net-6-0-support/</link>
      <pubDate>Wed, 24 Nov 2021 14:18:18 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2021/11/dotnet-script-1-3-is-out-with-net-6-0-support/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/filipw/dotnet-script/releases/tag/1.3.0&#34;&gt;Last week&lt;/a&gt; we released version 1.3 of &lt;a href=&#34;https://github.com/filipw/dotnet-script&#34;&gt;dotnet-script&lt;/a&gt;. The latest release introduces support for .NET 6.0 and C# 10 and is available, as usually, through Github releases and on Nuget. You will need to have at least the .NET SDK &lt;a href=&#34;https://dotnet.microsoft.com/download/dotnet/6.0&#34;&gt;6.0.100&lt;/a&gt; installed.&lt;/p&gt;
&lt;p&gt;The related language services in OmniSharp (e.g. C# extension for VS Code) have already been updated accordingly a while ago.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Beautiful and compact Web APIs revisited – with C# 10 and .NET 6 Preview 7</title>
      <link>https://www.strathweb.com/2021/08/beautiful-and-compact-web-apis-revisited-with-c-10-and-net-6-preview-7/</link>
      <pubDate>Mon, 16 Aug 2021 14:06:35 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2021/08/beautiful-and-compact-web-apis-revisited-with-c-10-and-net-6-preview-7/</guid>
      <description>&lt;p&gt;Back in 2012, when the Roslyn compiler was still closes source and its early CTP stages, &lt;a href=&#34;https://www.strathweb.com/2012/09/scripting-web-api-self-host-with-roslyn-ctp-part-1/&#34;&gt;I blogged&lt;/a&gt; about using its C# scripting capabilities to wire up an ASP.NET Web API server in just a few lines of code, with minimal ceremony. In 2014 I built an OWIN-based host, on top of the, then already well-stablished, scriptcs C# scripting project, that utilized the experimental IIS &amp;ldquo;Helios&amp;rdquo; server to provide a &lt;a href=&#34;https://github.com/scriptcs-contrib/scriptcs-owin-host-iis&#34;&gt;framework for building tiny C# web applications&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In 2017 &lt;a href=&#34;https://www.strathweb.com/2017/01/building-microservices-with-asp-net-core-without-mvc/&#34;&gt;I blogged&lt;/a&gt; about about building lightweight, minimal microservices with the early versions of ASP.NET Core. Last year, as ASP.NET Core and the &amp;ldquo;mainstream&amp;rdquo; C# (despite the initial resistance) started adopting some of these C# scripting concepts, &lt;a href=&#34;https://www.strathweb.com/2020/10/beautiful-and-compact-web-apis-with-c-9-net-5-0-and-asp-net-core/&#34;&gt;I wrote&lt;/a&gt; how they have been incorporated into ASP.NET Core in .NET 5.0, along with diving into some further improvements for building these lightweight Web APIs.&lt;/p&gt;
&lt;p&gt;It is now time to have a look at the latest set of changes in this space - as .NET 6 Preview 7, the latest one at the time of writing, and, in particular, C# 10, bring a lot of extra exciting things to the table.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
