The .NET Stacks #64: ⚡ Looking at Functions support in .NET 6
This week, we get a closer look at Azure Functions support for .NET 6.
Welcome to another week. I hope you had a good weekend. Before getting to the community links, I've got some quick items for you this week:
- Azure Functions .NET 6 support
- .NET Foundation Board election news
- Syncing namespaces in Visual Studio
- Last week in the .NET world
Azure Functions .NET 6 support
Last week, Anthony Chu announced the availability of the public preview for Azure Functions 4.0—which includes .NET 6 support. In case you weren't aware, Azure Functions has two programming models: in-process and isolated. Azure Functions 4.0 supports .NET 6 through the isolated model.
As Anthony states, the isolated model gives you greater control over Functions configuration and allows you to use DI and middleware as you do in your ASP.NET Core apps. Currently, you can only use this from CLI tooling. Soon, there will be support for Visual Studio and Visual Studio closer to the general .NET 6 release date in November (which is when Azure Functions 4.0 will be off public preview and generally available).
Since we're talking about Azure Functions, long-term the in-process model will be retired in favor of the isolated model. As you can see from this diagram I stole from Microsoft, that won't happen until .NET 7 in November 2022.
.NET Foundation Board election news
The results are out for the 2021 .NET Foundation Board elections. Congratulations to the following folks who made the cut:
- Mattias Karlsson
- Frank Odoom
- Rob Prouse
- Javier Lozano (re-elected)
Syncing namespaces in Visual Studio
As Oleg Kyrylchuk mentions, in the last preview of Visual Studio 2022 you can syncronize namespaces to mirror how the folder structure looks in Solution Explorer. This is in preview, but looks to be a cool feature—and should be done with caution, as there isn't currently a way to undo easily.
🌎 Last week in the .NET world
📢 Announcements
- Grace Taylor announces a collection of VS themes.
- The .NET Foundation election results are in.
- On September 30 Microsoft will be hosting a "Let's Learn .NET" on IoT.
📅 Community and events
- The Azure SDK team recaps the September release.
- Steve Smith reviews a new DI book.
- Josef Ottosson created a library that packages convenient configuration methods in .NET Core.
- For community standups, Desktop talks about Hot Reload updates, EF talks about PostgreSQL and EF Core, and ASP.NET talks about how to contribute to the platform.
- The .NET Docs show talks about home automation with Azure Precept.
🌎 Web development
- Nigel Sampson adds cross-cutting concerns to a GraphQL service.
- Cody Merritt Anhorn wires up conditional User-Agent logic with Blazor.
- Scott Hanselman shows how to change a site's Dark Mode based on the user's OS preference, and also writes about unit testing Minimal APIs in .NET 6.
- Anthony Giretti uses Angular and .NET 6 to stream JSON responses.
🥅 The .NET platform
- Matt Eland writes about LINQ .NET 6 improvements.
- Andrew Lock compares the WebApplicationBuilder to the generic host in .NET 6.
- Khalid Abuhakmeh provides some "interesting technology tips."
⛅ The cloud
- Muhammed Saleem works with Azure Table Storage in ASP.NET Core.
- Abhishek Gupta uses the Azure Cosmos DB Linux emulator and VS Code.
- Adam Storr asks: is accessing query string values in Azure Functions hard?
- Cyrille Visser optimizes Azure Cosmos DB queries.
- Anthony Chu announces Azure Functions 4.0 public preview with .NET 6 support.
- Damien Bowden creates Microsoft Teams meetings in ASP.NET Core using Microsoft Graph.
📔 Languages
- Ian Griffiths writes about implicit global using directives in C# 10.
- Davide Bellone uses aliases in C#.
- Thomas Claudius Huber writes about file-scoped namespaces in C# 10.
🔧 Tools
- Michael Shpilt writes about 6 tools to detect and fix performance issues in .NET.
- Sarah Lean looks at the GitHub CLI.
- Elijah Manor lists recent Git branches.
- Jason Gaylord writes about GitHub settings you might not know about.
📱 Xamarin
- Claudio Bernasconi sets up .NET MAUI on Windows.
- Leomaris Reyes gets device information.
🏗 Design, testing, and best practices
- The Netflix Tech Blog writes about A/B testing.
- Daniel Wertheim writes about value objects that are always valid.
- Tariq Siddiqui writes about securing web APIs.
- Bilgin Ibryam compares distributed transaction patterns for microservices.
- Peter Vogel starts writing about unit testing legacy code.
- Andrea Chiarelli compares ID tokens and access tokens.
🎤 Podcasts and videos
- AzureFunBytes talks to Christos Matskas about secretless applications.
- The Azure DevOps Podcast talks to Joe Guadagno about the latest in Azure DevOps.
- The Changelog talks about the business model of open source.
- The Unhandled Exception Podcast talks to Steve Collins about DI in .NET.
- Adventures in .NET talk about advocating for yourself.
- .NET Rocks talks to Zaid Ajaj about F# and JS.
- Merge Conflict recaps .NET 6 RC1, .NET MAUI updates, and more.
- The .NET Core Podcast talks to Davide Bedine about Dapr and .NET microservices.
- Jeff Fritz walks through collections and generics in C#.
- The ASP.NET Monsters process CSV files in C#.
- The On .NET Show talks about Reaqtor.