.NET Digest #1
Tags: dotnet, csharp, digest, learning
Published: 2024-07-08 08:07:37

Welcome to our first news and event digest for the \.NET world\! The C\# developers from PVS\-Studio have gathered the most interesting and useful insights for you to keep you up to date with the latest trends and developments\. Let's get started\!

![](https://import.viva64.com/docx/blog/1140_NET_digest_N1/image1.png)

This format is new to us, and it feels like something unexplored\. Will the digest be regular? It all depends on your feedback\. We're planning to post such news every month or two\. We'd love to hear your thoughts and ideas\!

Feel free to send us your findings using our [feedback form](https://pvs-studio.com/en/about-feedback/?is_question_form_open=true)\!

Here's what's in the digest: \.NET 9 Preview 5, a library announcement by OpenAI, a general release of the \.NET MAUI extension for VS Code, new versions of favorite IDEs, useful articles and videos, and much more\.

## Top news

[\.NET 9 Preview 5](https://github.com/dotnet/core/tree/main/release-notes/9.0/preview/preview5)

\.NET 9 has taken another step on the way to the release candidate stage, and then it'll be ready for a full\-fledged release\. Let's take a look at the major updates:

* enhanced AI capabilities with *TensorPrimitives* and *Tensor<T\>;*
* boosted performance* *of *params* with *Span* overloads;
* detecting \(multiple\) substrings within a string via the *SearchValues* type;
* enhanced iteration through the completed tasks using *foreach* and *Task\.WhenEach*;
* and much more\.

[Announcing the official OpenAI library for \.NET](https://devblogs.microsoft.com/dotnet/openai-dotnet-library/) 

The OpenAI team has released its first beta version of the official OpenAI library for \.NET\. The library ensures seamless and supported integration with OpenAI and Azure OpenAI\. The \.NET library is developed and supported on [GitHub](https://github.com/openai/openai-dotnet)\.

[The \.NET MAUI Extension for Visual Studio Code is now Generally Available](https://devblogs.microsoft.com/dotnet/the-dotnet-maui-extension-for-visual-studio-code-is-now-generally-available/) 

The \.NET MAUI extension provides the tools you need to develop the \.NET MAUI apps in Visual Studio Code\. It's built on top of the [C\# Dev Kit](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csdevkit) and the [C\# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp), which include Solution Explorer, C\# Hot Reload, powerful C\# IntelliSense, and much more\.

[Visual Studio 2022 – 17\.10 Performance Enhancements](https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-10-performance-enhancements/) 

This update brings performance enhancements in various aspects of the IDE\. The most notable enhancements are:

* the Windows Forms Designer loading is 30\-50% faster;
* the C\# code colorization in Razor is 25% faster;
* enhanced speed of a solution load; dropped cache size by nearly 50% and accelerated loading by 10% \(they used [OrhcardCore](https://github.com/OrchardCMS/OrchardCore) as an example to measure it\);
* reduced the number of DLLs loaded in various scenarios by 10%\.

## Video

[Matt Ellis and Antonio Antunes – An Eye For Success With Odin Inspector and JetBrains Rider](https://www.youtube.com/watch?v=iyvs0U3jDHA) 

We suggest watching the recording of the JetBrains live broadcast\. Here, the developers talk about how Odin Inspector can help you create Unity editor customizations, and how the newest Rider version can streamline your workflow with the Odin Inspector toolkit\.

<https://www.youtube.com/watch?v=iyvs0U3jDHA>

[The New \.NET 9 HybridCache That You Must Upgrade To\!](https://www.youtube.com/watch?v=D-2icc7XkZc) 

Nick Chapsas explains a new *HybridCache* in details\.

<https://www.youtube.com/watch?v=D-2icc7XkZc>

[Microsoft is Breaking Your Code in C\# 13](https://www.youtube.com/watch?v=3jb9Du9pMes) 

In this video, the author shows how you can leverage a brand\-new C\# 13 feature —semi\-auto properties\.

<https://www.youtube.com/watch?v=3jb9Du9pMes>

[The New Extensions EVERYTHING Feature of C\# 13\!](https://www.youtube.com/watch?v=ueO5Cb3Emcw) 

This new feature may be introduced in C\# 13\. C\# developers used to only have extension methods, but now we can extend just about everything\!

<https://www.youtube.com/watch?v=ueO5Cb3Emcw>

[My First look at \.NET Aspire\. What's with the Hype?](https://www.youtube.com/watch?v=maVXnkYEDIE) 

The author shares his first experience with a new \.NET Aspire platform\.

<https://www.youtube.com/watch?v=maVXnkYEDIE>

## Articles

[Introducing collection expressions in C\#12](https://andrewlock.net/behind-the-scenes-of-collection-expressions-part-1-introducing-collection-expressions-in-csharp12/) 

In the first part of the series, Andrew Lock takes an in\-depth look at the collection expressions that were introduced in C\# 12\. 

[Exploring the generated code: List<T\> and fallback cases](https://andrewlock.net/behind-the-scenes-of-collection-expressions-part-2-exploring-the-generated-code-list-and-fallback-cases/) 

It's the second part of the Andrew Lock's series\. In this post, he explains what the compiler generates when we use collection expressions with some built\-in types\.

[Getting started with UI testing \.NET MAUI apps using Appium](https://devblogs.microsoft.com/dotnet/dotnet-maui-ui-testing-appium/#comments) 

The author talks about UI testing of the \.NET MAUI applications using Appium\.

[Refactor your code with default lambda parameters](https://devblogs.microsoft.com/dotnet/refactor-your-code-with-default-lambda-parameters/) 

This is a fresh post on the latest updates to C\# 12\. Here, you can take a closer look at a new feature that allows developers to use default parameter values in lambdas\.

[Announcing Third Party API and Package Map Support for \.NET Upgrade Assistant](https://devblogs.microsoft.com/dotnet/announcing-api-map-support-for-ua/) 

\.NET Upgrade Assistant gets support for third\-party APIs and package maps\. The enhancement enables developers to easily search for and replace outdated third\-party APIs and packages with the newer counterparts\. It greatly streamlines the migration to new platforms such as UWP to WinUI or Xamarin Forms to \.NET MAUI\.

[Caching in ASP\.NET Core: Improving Application Performance](https://www.milanjovanovic.tech/blog/caching-in-aspnetcore-improving-application-performance) 

In this article, you can catch insights about caching in ASP\.NET Core\. The author covers different cache types and their implementation approaches\.

[Code Style for Better Productivity – Tips and Tools from the Metalama Team](https://blog.jetbrains.com/dotnet/2024/06/18/code-style-for-better-productivity-tips-and-tools-from-the-metalama-team/) 

If you're looking for insights on code style, this article is a great read\. The Metalama developers will tell you what tools they use, share their tips for reaching a consensus on code style, and how to ensure its strict enforcement\.

[9 Things You Didn't Know About JetBrains Rider's NuGet Support](https://blog.jetbrains.com/dotnet/2024/05/29/9-things-you-didn-t-know-about-jetbrains-rider-s-nuget-support/) 

The title of the article speaks for itself\. Here are nine things you might not know about using NuGet via Rider\. The article offers a great chance to fix this\.

[dotCover Command Line Tools for Automation Testing Code Coverage](https://blog.jetbrains.com/dotnet/2024/06/20/dotcover-command-line-tools-for-automation-testing-code-coverage/) 

In this post, you'll learn how to work with the dotCover command\-line tool and gather code coverage statistics in the most common scenarios\.

[The Best Way To Map Objects in \.Net in 2024](https://antondevtips.com/blog/the-best-way-to-map-objects-in-dotnet-in-2024) 

If you decide to read this article, you will discover different approaches and libraries for object mapping\. The author will reveal the secret of what's the best way to map objects in 2024\.

[The Ultimate Guide to \.NET Native AOT: Benefits and Examples](https://dev.to/bytehide/the-ultimate-guide-to-net-native-aot-benefits-and-examples-pg4) 

Here, the title speaks for itself too\. Indeed, this is the ultimate guide to working with NativeAOT\. Find out how to use this approach, as well as learn about its pros, cons, and limitations\.

## News

[Unity builds a game developer AI assistant with Azure OpenAI Service](https://customers.microsoft.com/en-us/story/1769469533256482338-unity-technologies-azure-open-ai-service-gaming-en-united-states) 

Unity is developing its own AI assistant to help developers and answer the most common questions\.

## New version releases

[Rider 2024\.1\.3 and ReSharper 2024\.1\.3](https://blog.jetbrains.com/dotnet/2024/06/10/rd-rsrp-2024-1-3/) and [ReSharper 2024\.1\.4 and Rider 2024\.1\.4](https://blog.jetbrains.com/dotnet/2024/06/24/resharper-rider-2024-1-4/) 

JetBrains has fixed the crashes and vulnerabilities, updated Roslyn support, and added a new inspection\.

[Visual Studio 2022 version 17\.10\.2](https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17102--visual-studio-2022-version-17102) and [Visual Studio 2022 version 17\.10\.3](https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#17103--visual-studio-2022-version-17103) 

The VS Code developers have fixed errors and crashes in Visual Studio 2022\. They also don't forget about security enhancements\.

[PVS\-Studio 7\.31: new C\+\+ analyzer features, enhanced user annotations\.](https://pvs-studio.com/en/blog/posts/1133/) 

The new release of the static analyzer brought many enhancements for the C\# analyzer as well\. The PVS\-Studio team has introduced new diagnostic rules and bug fixes along with many new articles and talks\.

Thank you for reading\! See you soon\!