2022-03-31: .NET 5.0 End of Support, gRPC v1.45.0, System.CommandLine 2.0 Beta 3

Published on Thursday, 31 March 2022

お知らせ: 今月と来月はいろいろな都合により縮退運転気味(一部の紹介やリンクの羅列による紹介)となってしまいますが何卒よろしくお願いします。

トピックス

.NET 5.0 will reach End of Support on May 08, 2022

https://devblogs.microsoft.com/dotnet/dotnet-5-end-of-support-update/

.NET 5 が 2022 年 5 月 8 日にサポートが終了することについてのアナウンス。

5月以降セキュリティー修正を含む更新を受け取りたい場合には .NET 6 への移行が推奨される。記事ではプロジェクトの更新と開発環境の更新について触れている。

Release Release v1.45.0 · grpc/grpc

https://github.com/grpc/grpc/releases/tag/v1.45.0

gRPC v1.45.0 (NuGet パッケージでは 2.45.0) がリリースされた。

このバージョンでは .NET 向けの変更として Streaming API のインターフェースの WriteAsync に CancellationToken を受けとるオーバーロードが追加されたこと(ただし C-core ではサポートされない)、nullable に関する修正が含まれている。

Announcing System.CommandLine 2.0 Beta 3 · Issue #1613 · dotnet/command-line-api

https://github.com/dotnet/command-line-api/issues/1613

System.CommandLine 2.0 Beta 3 がリリースされた。

  • 不要なインターフェイスの削除
  • コマンドラインの構成のバリデーションがオンデマンドに
  • SymbolSet の削除
  • [debug] ディレクティブの削除
  • シンプルなバリデーター API
  • トリミングのサポート

アーティクル、スライドなど

Task.Delayの精度

https://zenn.dev/mono_matsu/articles/544e3384ea4a70

Taurus を使って .NET のテストプロジェクトを対象にロードテストを実施する - Qiita

https://qiita.com/karuakun/items/e254bcbb7dcc61a4ca5d

Creating a Menu Bar UI with .NET MAUI Preview 14

https://dev.to/syncfusion/creating-a-menu-bar-ui-with-net-maui-preview-14-fdo

C# の Event を await する

https://zenn.dev/tan_y/articles/2d0c15b21c5a8c

Go To Definition improvements for external source in Roslyn

https://devblogs.microsoft.com/dotnet/go-to-definition-improvements-for-external-source-in-roslyn/

[SignalR] Add client return results by BrennanConroy · Pull Request #40811 · dotnet/aspnetcore

https://github.com/dotnet/aspnetcore/pull/40811

[C#] 固定長配列を持つ構造体の取り扱い方 - Qiita

https://qiita.com/radian-jp/items/02ee4fa3b200874014e1

How segments and regions differ in decommitting memory in the .NET 7 GC

https://maoni0.medium.com/how-segments-and-regions-differ-in-decommitting-memory-in-the-net-7-gc-68c58465ab5a

COPY --chmod reduced the size of my container image by 35%

https://blog.vamc19.dev/posts/dockerfile-copy-chmod/

Tracking down a hanging xUnit test in CI: building a custom Test Framework

https://andrewlock.net/tracking-down-a-hanging-xunit-test-in-ci-building-a-custom-test-framework/

GitHub Essentials with Rider | The .NET Tools Blog

https://blog.jetbrains.com/dotnet/2022/03/28/github-essentials-with-rider/

Looking for errors in the C# code of the Eto.Forms GUI framework

https://medium.com/pvs-studio/looking-for-errors-in-the-c-code-of-the-eto-forms-gui-framework-7cbae564a1d4

Just because you stopped waiting for it, doesn't mean the Task stopped running

https://andrewlock.net/just-because-you-stopped-waiting-for-it-doesnt-mean-the-task-stopped-running/

What is pub/sub and how to apply it in C# .NET to build a chat app

https://dev.to/ablydev/how-to-use-pubsub-in-c-net-6-to-build-a-chat-app-1ok7

C# null許容参照型を有効にした場合のEF Core DbSetTの書き方 - Qiita

https://qiita.com/yohskeey/items/6e9e5d1f140558d37c99

A few words about the implementation of ListT in C#

https://dev.to/wojciechowskapaula/a-few-words-about-the-implementation-of-list-in-c-2h8j

ImageSharp 2.0.0: the Feature-Packed Release

https://www.infoq.com/news/2022/03/imagesharp-2-release/

HTTPClient Mocking — C#

https://pritompurkayasta.medium.com/httpclient-mocking-c-f452909a987c

LINQ to Objectsを使う前におさえておくべき3つのこと

https://zenn.dev/nuits_jp/articles/introduction-linq-to-objects

ASP.NET Core Blazor Server でクレームベースの承認とポリシーベースの承認をする

https://zenn.dev/okazuki/articles/add-policybaseauth-and-claimbaseauth

Annotations Frameworkを使って、C#でのAWS Lambda 関数実装をもっと楽にしよう - Qiita

https://qiita.com/karuakun/items/bc8f3dd029402ba667f6

Dictionary implementation in C#

https://dev.to/wojciechowskapaula/dictionary-implementation-in-c-50j1

ライブラリ、リポジトリ、ツールなど

kekyo/CenterCLR.RelaxVersioner: An easy, full-automatic, git based version inserter for .NET 6, 5/.NET Core/.NET Framework.

https://github.com/kekyo/CenterCLR.RelaxVersioner

XamlAnimatedGif/WpfAnimatedGif: A simple library to display animated GIF images in WPF, usable in XAML or in code.

https://github.com/XamlAnimatedGif/WpfAnimatedGif

SteveSandersonMS/dotnet-wasi-sdk: Packages for building .NET projects as standalone WASI-compliant modules

https://github.com/SteveSandersonMS/dotnet-wasi-sdk

VSadov/NonBlocking: Implementation of a lock-free dictionary on .Net.

https://github.com/VSadov/NonBlocking

サイト、ドキュメントなど

ツイート