.NET Digest #1

pvsdev

Anastasiia Vorobeva

Posted on July 8, 2024

.NET Digest #1

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!

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!

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

.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;
  • 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

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.

The .NET 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 and the C# extension, which include Solution Explorer, C# Hot Reload, powerful C# IntelliSense, and much more.

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 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

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!

Nick Chapsas explains a new HybridCache in details.

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

Microsoft is Breaking Your Code in C# 13

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!

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?

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

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 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

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

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

.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

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

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

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

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

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

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

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 and ReSharper 2024.1.4 and 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 and Visual Studio 2022 version 17.10.3

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.

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!

💖 💪 🙅 🚩
pvsdev
Anastasiia Vorobeva

Posted on July 8, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

.NET Digest #1
dotnet .NET Digest #1

July 8, 2024