The .NET Stacks #67: 🆕 .NET 6 RC2 arrives
Tags: dotnet, csharp
Published: 2021-10-24 18:45:42

---
title: The .NET Stacks #67: 🆕 .NET 6 RC2 arrives
published: true
date: 2021-10-24 16:39:29 UTC
tags: dotnet, csharp
canonical_url: https://www.daveabrock.com/2021/10/24/dotnet-stacks-67/
---

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l8wmj31d8thcg8zvnb5t.png)

Welcome to another week, full of [top-notch product announcements](https://www.theverge.com/2021/10/18/22732912/apple-macbook-pro-notch-display) and the proclamation of "View Source" [as a crime](https://twitter.com/GovParsonMO/status/1448697768311132160).  I too am a hacker, apparently.

Anyway, here's what we have going on this week:

- Web updates with .NET 6 RC 2
- New .NET 6 LINQ API: Chunk
- Last week in the .NET world

* * *

## Web updates with .NET 6 RC 2

Right on time, last week Microsoft [rolled out the .NET 6 RC 2 release](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/). It's the second of two "go live" RCs that are actually supported in production. Richard Lander's announcement post gets you up to speed on [what is new with C# 10](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#c-10), including [record structs](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#record-structs), [global usings](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#global-usings), [file-scoped namespaces](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#file-scoped-namespace-declaration), [interpolated strings](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#const-and-interpolated-strings), and [extended property patterns](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2/#extended-property-patterns).

Despite being oh-so-close to the official release next month, the ASP.NET Core team was busy shipping updates for this release and I'd like to [pay attention to those](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-rc-2/). We saw updates in two big areas: [native dependencies](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-rc-2/) and Minimal APIs—the latter of which I've admittedly beaten to death, but also plays a pivotal future in how you build new APIs in the .NET ecosystem (if you want to get over MVC, of course).

With Blazor WebAssembly, in .NET 6 you can now use native dependencies that are built to run on WebAssembly. Using new .NET WebAssembly build tools, you can statically link native dependencies. You can use any native code with this, like C/C++ code, archives, or even standalone .wasm modules. If you have some C code, for example, the build tools can compile and link it to a `dotnet.wasm` file. To extend it some more, you can use libraries with native dependencies as well.

As for Minimal APIs, you can now leverage parameter binding improvements. With RC2, you can use `TryParse` and `BindAsync` for inherited methods. For example, `BindAsync` allows you to bind a complex type using inheritance. Check out Daniel Roth's [blog post for details](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-rc-2/#parameter-binding). The RC2 release also makes some [OpenAPI enhancements](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-rc-2/#openapi) and includes some analyzers to help you find issues with [middleware issues or route handling](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-rc-2/#source-code-analysis).

It's hard to believe the next .NET 6 announcement will be the full release itself. As part of that [.NET Conf will celebrate the launch](https://www.dotnetconf.net/), and Visual Studio 2022 will launch on November 8. In the year 2021. (I know.)

* * *

## New .NET 6 LINQ API: Chunk

If you haven't heard, .NET 6 will roll out some nice LINQ API improvements. Matt Eland recently [wrote a nice piece about them](https://raygun.com/blog/linq-net-6-improvements/). As a whole, it's nice to see .NET 6 roll out quite a few API improvements that were previously done with some light hacking. We all do some light hacking, of course, but for millions of .NET developers there are a lot of common use cases—and it's nice to see those being addressed.

My favorite recent LINQ API improvement is the Chunk API. If you work with large collections of objects, you can now chunk them in case you want to work through pagination or other "chunking" use cases. For paging, you previously had to set a page size, loop through the collection, add to some paging collection, and update some counts.

Instead, as Matt notes, you could try something like this:

```
IEnumerable<Movie[]> chunks = movies.Chunk(PAGE_SIZE);
```

This should really help folks page through big API datasets. When you don't control the data coming back, you had to set this up yourself. Very nice.

* * *

## 🌎 Last week in the .NET world

### 

### 📢 Announcements

- Richard Lander [announces .NET 6 Preview 2](https://devblogs.microsoft.com/dotnet/announcing-net-6-release-candidate-2), and Daniel Roth discusses [ASP.NET Core updates](https://devblogs.microsoft.com/aspnet/asp-net-core-updates-in-net-6-rc-2). Also, David Ortinau [introduces .NET MAUI Preview 9](https://devblogs.microsoft.com/dotnet/announcing-net-maui-preview-9).
- Visual Studio 2022 for Mac Preview 2 [is now available](https://devblogs.microsoft.com/visualstudio/visual-studio-2022-for-mac-preview-2-is-now-available).
- Jeremy Likness [writes about SQL Server temporal tables in EF Core 6](https://devblogs.microsoft.com/dotnet/prime-your-flux-capacitor-sql-server-temporal-tables-in-ef-core-6-0).
- Auth0 is now [available on Azure](https://auth0.com/blog/auth0-on-microsoft-azure-as-a-private-cloud-deployment-option/).

### 📅 Community and events

- Brendan Burns [provides updates on KubeCon](https://cloudblogs.microsoft.com/opensource/2021/10/13/kubecon-north-america-2021-kubernetes-on-azure-and-open-source-updates).
- Jeremy Miller [writes all about deletes in Marten v4](https://jeremydmiller.com/2021/10/11/marten-v4-hard-deletes-soft-deletes-un-deletes-all-the-deletes-you-meet/).
- Aaron Stannard [writes about the Future of the .NET Foundation and .NET OSS](https://aaronstannard.com/future-of-dotnet-foundation/). In related news, The .NET Foundation [is holding a Tell Me Anything meeting](https://dotnetfoundation.org/blog/2021/10/14/come-talk-to-us-a-net-foundation-face-to-face).
- Microsoft has a VS 2022 launch event [on November 8](https://devblogs.microsoft.com/visualstudio/join-us-november-8th-for-the-launch-of-visual-studio-2022).

### 🌎 Web development

- Vedran Cindric [provides some REST guidance](https://dzone.com/articles/the-rest-of-the-10-commandments).
- Niels Swimberghe [works with Blazor’s new HeadContent and PageTitle](https://swimburger.net/blog/dotnet/get-your-head-together-with-blazors-new-headcontent-and-pagetitle).
- Matthew MacDonald [throws some cold water on Blazor AOT compilation](https://medium.com/young-coder/blazors-aot-compilation-isn-t-the-silver-bullet-you-re-expecting-2a454e524bc7).

### 🥅 The .NET platform

- Scott Hanselman [debugs a .NET SDK issue](https://www.hanselman.com/blog/dotnet-could-not-execute-because-the-application-was-not-found-or-a-compatible-net-sdk-is-not-installed).
- Matthew Jones [writes about the new Chunk() method in .NET 6](https://exceptionnotfound.net/bite-size-dotnet-6-chunk-in-linq/).
- Code Maze [works through a CQRS validation pipeline with MediatR and FluentValidation](https://code-maze.com/cqrs-mediatr-fluentvalidation/).
- Andrew Lock [supports EF Core migrations with WebApplicationBuilder](https://andrewlock.net/exploring-dotnet-6-part-5-supporting-ef-core-tools-with-webapplicationbuilder/).
- Muhammad Rehan Saeed [writes about his issues with C# 10 implicit usings](https://rehansaeed.com/the-problem-with-csharp-10-implicit-usings/).

### ⛅ The cloud

- Lee Briggs [compares Azure container solutions](https://www.pulumi.com/blog/azure-container-solutions/).
- Norm Johanson [writes about the new AWS .NET Deployment Experience](https://aws.amazon.com/blogs/developer/dotnet-deployment-projects/), and François Bouteruche [migrates .NET Framework apps to AWS](https://medium.com/i-love-my-local-farmer-engineering-blog/migrating-our-trusty-ol-net-framework-applications-to-aws-i-couldn-t-believe-it-2b111fcd8146).
- Daniel Krzyczkowski [writes about async communication with the Azure Service Bus](https://daniel-krzyczkowski.github.io/Asynchronous-communication-with-Azure-Service-Bus/).
- Pavel Krymets [introduces experimental OpenTelemetry support in the Azure SDK for .NET](https://devblogs.microsoft.com/azure-sdk/introducing-experimental-opentelemetry-support-in-the-azure-sdk-for-net).
- Stephanie Lee [writes about using Azure Functions with .NET 5](https://medium.com/asos-techblog/azure-functions-in-net-5-6faae95c1b72).

### 🔧 Tools

- Khalid Abuhakmeh [works on cursor paging with Entity Framework Core and ASP.NET Core](https://khalidabuhakmeh.com/cursor-paging-with-entity-framework-core-and-aspnet-core).
- The Pro Code Guide [uses Polly with ASP.NET Core](https://procodeguide.com/programming/polly-in-aspnet-core/).
- James Croft [runs Selenium UI Tests with Azure DevOps](https://www.jamescroft.co.uk/running-selenium-ui-tests-in-an-azure-devops-pipeline/).
- Cody Merritt Anhorn [enables .NET CLI tab completion](https://codyanhorn.tech/blog/enable-net-cli-tab-completion).
- Thomas Ardal writes about [updating NuGet packages from the command line](https://blog.elmah.io/updating-nuget-packages-from-command-line-deep-dive/).
- Davide Bellone [adds logs with .NET Core and Serilog](https://www.code4it.dev/blog/serilog-log-on-console).
- Grace Taylor [writes about using VS Code themes with Visual Studio 2022](https://devblogs.microsoft.com/visualstudio/vs-code-themes-in-vs).
- Matthias Koch [writes about the reworked Copy Code Reference feature in ReSharper and Rider 2021.3 EAP](https://blog.jetbrains.com/dotnet/2021/10/11/copy-code-reference-in-resharper-and-rider-2021-3-eap/).

### 🏗 Design, testing, and best practices

- Derek Comartin [explores data consistency between microservices](https://codeopinion.com/data-consistency-between-microservices/).
- Camille Fournier [writes about how new managers fail individual contributors](https://www.elidedbranches.com/2021/10/how-new-managers-fail-individual.html).
- Dennis Doomen [describes 15 flags that tell you that your testability practices need maturing](https://www.continuousimprover.com/2021/10/symptoms-testability.html).
- The Overflow [explores design patterns](https://stackoverflow.blog/2021/10/13/why-solve-a-problem-twice-design-patterns-let-you-apply-existing-solutions-to-your-code/).
- Jennifer Riggins [writes about the emergence of observability](https://thenewstack.io/observability-is-the-new-kubernetes/).

### 🎤 Podcasts and videos

- Adventures in .NET [talk about VS 2022](https://adventuresindotnet.com/vs-2022-64-bit-net-090).
- The Coding Blocks asks: [should you speak at a conference?](https://www.codingblocks.net/podcast/should-you-speak-at-a-conference/)
- .NET Rocks [talks to Mads Torgersen about C# 10](https://www.dotnetrocks.com/default.aspx?ShowNum=1761).
- AzureFunBytes talks to Burke Holland [about remote development](https://devblogs.microsoft.com/devops/azurefunbytes-episode-59-remote-possibilities-with-burkeholland).
- The ASP.NET Monsters [build GitHub Actions in C#](https://www.youtube.com/watch?v=lfVEv54BfLE).
- Scott Hanselman [makes the ultimate terminal prompt on Windows 11](https://www.youtube.com/watch?v=VT2L1SXFq9U).
- The .NET MAUI Podcast [talks all about .NET 6 RC 2](https://www.dotnetmauipodcast.com/100).