"Supported target frameworks" lists net48 for the .NET SDK, but dotnet build can't build some net48 projects

オープン 初心者向け
#57,038 コメント 0 件 リアクション 1 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@BillWagner がすでに取り組んでいます。

2026年11月30日 から。

  • #57054 @BillWagner による — オープン

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
85/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
領域
documentation

調査の方向性

Issue では、.NET frameworks ページの「Supported target frameworks」表が示され、MSB3822/MSB3823 エラーへのリンクがあります。まずその表とリンク先のエラーに関する説明を読んでください。net48 でのリソース埋め込みの制限を説明する注記を追加し、エラーへのリンクを記載します。読者が dotnet build と dotnet pack はすべての net48 プロジェクトをサポートしているわけではないと確認できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the issue or suggestion

Page: https://learn.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-frameworks

The section says: "The following table shows the target frameworks supported by the .NET SDK and the NuGet client" and lists net48/net481. This suggests that the .NET SDK (dotnet build, dotnet pack) fully supports building .NET Framework projects.

This isn't the case. A net48 project with non-string resources fails with MSB3822/MSB3823. This includes a standard WinForms form icon ($this.Icon) and images or icons in Resources.resx. According to MSB3822, "If you want to use the old default process, you must build with MSBuild.exe or Visual Studio and can't use the dotnet build command." The only alternative is to add a runtime dependency on System.Resources.Extensions, which the project didn't need before.

So the SDK supports net48 only partly: it supports the TFM, but not the default resource embedding of .NET Framework. Please add a note about this limitation to the table, with a link to MSB3822/MSB3823. Otherwise readers will assume that dotnet build/dotnet pack can replace MSBuild.exe for any net48 project.

主要言語
言語のデータがありません
スター
4.8k
フォーク
6.1k
平均マージ
1日 3時間
マージ済み PR(30日)
263

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/docs のほかの issue

dotnet/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。