2023-05-14: Windows App SDK v1.3.1, Visual Studio UI Refresh, .NET Framework 4.8.1 on Windows Update and Catalog

Published on Sunday, 14 May 2023

トピックス

Release v1.3.1 · microsoft/WindowsAppSDK

https://github.com/microsoft/WindowsAppSDK/releases/tag/v1.3.1

Windows App SDK v1.3.1 がリリースされた。

このリリースではいくつかのクラッシュする問題の修正やテンプレートの更新などが含まれている。

Visual Studio UI Refresh - Visual Studio Blog

https://devblogs.microsoft.com/visualstudio/visual-studio-ui-refresh/

Visual Studio の UI をリフレッシュする計画についてのアナウンス。

将来的に Visual Studio の UI を Fluent Design に準じたものへアップデートすることを計画していること、現時点でのデザイン案の共有、フィードバックの受け付けについてなど。

Upcoming availability of .NET Framework 4.8.1 on Windows Update and Catalog - .NET Blog

https://devblogs.microsoft.com/dotnet/upcoming-availability-of-net-framework-4-8-1-on-windows-update-and-catalog/

.NET Framework 4.8.1 が Windows Update と Windows Updaet Catalog から利用可能となることについてのアナウンス。

今後数週間かけて Windows Update および Windows Update Catalog から .NET Framework 4.8.1 が配信される。配信は Windows Insider Preview の Release Preview から展開される。

記事ではダウンロード方法や言語パック、自動更新のブロック、その他 FAQ について書かれている。

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

Azure.AI.OpenAI パッケージで OpenAI と Azure OpenAI Service に繋ぐときの違い

https://zenn.dev/microsoft/articles/howtouser-azure-ai-openai

Azure.AI.OpenAI NuGet パッケージでは OpenAI API と Azure OpenAI Service の両方に対応しているが、利用設定時に若干異なる部分があることについて。

Visualizing Data in dotnet with Polyglot Notebooks and SandDance

https://dev.to/integerman/visualizing-data-in-dotnet-with-polyglot-notebooks-and-sanddance-55k9

Polyglot Notebooks でデータビジュアライズのライブラリー SandDance を C# コードから利用する方法について。

Level up your GPT game with prompt engineering - .NET Blog

https://devblogs.microsoft.com/dotnet/gpt-prompt-engineering-openai-azure-dotnet/

OpenAI の ChatGPT を呼び出す際に役立つプロンプトエンジニアリングについて。

Join us for HackTogether: The Microsoft Teams Global Hack - .NET Blog

https://devblogs.microsoft.com/dotnet/hacktogether-microsoft-teams-global-hack/

Microsoft Teams のバーチャルハッカソンイベントについて。

6月1日にキーノートとともに開始し、15日までの間で開発、提出を行うイベント。いくつかの省が用意され、勝者には賞品が贈られる。

.NET のオプション パターンで設定が正しい値かどうか検証をしたい

https://zenn.dev/microsoft/articles/options-pattern-validation

ASP.NET Core をはじめとした Microsoft.Extensions.Options をを使用したオプションパターンで設定値を検証する方法について。

記事では Microsoft.Extensions.Options.DataAnnotations を使用して DataAnnotations で検証する方法を紹介している。

EF Coreで正しくUPDATEする方法 - Qiita

https://qiita.com/jun1s/items/3e2b3702a965bb5e2705

Entity Framework Core で間違えて使用される Update メソッドについてや Detach されているエンティティから更新する方法についてなど。

Surround selection experiment - Visual Studio Blog

https://devblogs.microsoft.com/visualstudio/surround-selection-experiment/

選択範囲を囲むような入力を実現する機能について。

実際に製品に組み込む前の実験的な拡張を提供し、すべての言語に適用できるか検証を行いフィードバックを求めている。

API versioning and Swagger in ASP.NET Core 7.0

https://mohsen.es/api-versioning-and-swagger-in-asp-net-core-7-0-fe45f67d8419

ASP.NET Core でバージョニングされた API を提供し、Swagger を Bearer 認証で利用できるようにするまでの手順を説明している。

Top 10 C# conference talks 2019–2022

https://unicorn-dev.medium.com/top-10-c-conference-talks-2019-2022-78c049b2d6e9

2019年から2022年に行われた C# 関連のカンファレンスのセッション10選。

How to Use Visual Studio Like a Pro When Presenting Your Code

https://dev.to/this-is-learning/how-to-use-visual-studio-like-a-pro-when-presenting-your-code-5955

プレゼンテーションで Visual Studio を使用するためのモードを用意する方法について。

Modern minimal workers in .NET | Anthony Simmon

https://anthonysimmon.com/dotnet-minimal-workers/

Generic Host と Top-level Statements を使用して Worker 型のをアプリケーションを実装する方法について。

.NET Market History in China

https://tonyqus.medium.com/net-market-history-in-china-d057e1f24d0f

中国における .NET の状況の今昔。

Semantic Kernel v0.13.442.1-preview がリリースされました

https://zenn.dev/microsoft/articles/semantic-kernel-12

Semantic Kernel v0.13.442.1-preview での更新点について。

gRPC をスキルとして読み込めるようになったことや Azure Cognitive Search を Semantic Memory として利用できるようになったこと、Completion のストリーミング対応などについて。

How to start using .NET Background Services | The .NET Tools Blog

https://blog.jetbrains.com/dotnet/2023/05/09/dotnet-background-services/

Generic Host でバックグラウンドで処理を行う BackgroundService の開発の始め方について。

.NET MAUI WebViews: How to Play Videos in Full Screen

https://dev.to/vhugogarcia/net-maui-webviews-how-to-play-videos-in-full-screen-1j03

.NET MAUI の Android WebView で全画面動画再生を行う方法について。

How to Download Files from Secure FTP Server (SFTP) using WinSCP in .NET

https://juldhais.net/how-to-download-files-from-secure-ftp-server-sftp-using-winscp-in-net-895fbb44362c

WinSCP の .NET 向けスクリプティングライブラリーを利用して SFTP サーバーからファイルをダウンロードする方法について。

Raiders of the lost root: looking for memory leaks in .NET

https://chnasarre.medium.com/raiders-of-the-lost-root-looking-for-memory-leaks-in-net-28febafebac1

C++ Profiler API を使用してオブジェクトの参照を辿ってメモリーリークを探す方法について。

Go for C# developers: defer is not IDisposable

https://blog.cellfish.se/2023/05/go-for-c-developers-defer-is-not.html

Go の defer と C# の IDisposable (using) の違いについて。一見似ていて勘違いしそうであるが defer は関数スコープとなる。

Reading Windows Application Manifest of an exe in .NET - Gérald Barré

https://www.meziantou.net/reading-windows-application-manifest-of-an-exe-in-dotnet.htm

実行ファイル (.exe) ファイルのマニフェストファイルを Win32 API を使用して読み出す方法について。

C# で始める並列化:目次

https://zenn.dev/k_taro56/articles/vetcorized-csharp-introduction

SIMD を使用した並列化についてのシリーズ。

イベント

.NETラボ 勉強会 2023年5月 - connpass

https://dotnetlab.connpass.com/event/281932/

5月27日(土)に開催されるオンライン勉強会。

  • Tanzu Application Platform と Azure Spring Apps によるマイクロサービスアプリケーション開発のアジリティ向上
  • C# の async/await は実際にどうやって動いているか
  • C#とUnityによる初めてのゲーム開発
  • Semantic Kernel(C#)でAzure OpenAI ServiceのGTP-4を使ってみる

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

ChatGPT APIクライアントアプリ『TmCGPT Debugger』v2.0-beta

https://zenn.dev/jun_murakami/articles/a5ca626eb8204b

Avalonia UI で実装された ChatGPT の API クライアント。

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

ツイート

.NET 8 のマネージドヒープの種類。

Visual Studio でサポートされた .http ファイルのドキュメントが追加された。

Deep Dive

Delete Windows arm32 support by jkotas · Pull Request #86065 · dotnet/runtime

https://github.com/dotnet/runtime/pull/86065

.NET 6 以前でサポートが終わっていた Windows の ARM32 サポートの削除 PR。