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

Aperta Adatta ai principianti
#57,038 0 commenti 1 reazione 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@BillWagner ci sta già lavorando.

Dal 30/11/2026.

  • #57054 di @BillWagner — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
85/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
documentation

Direzione di ricerca

L’issue indica la tabella «Supported target frameworks» nella pagina dei framework .NET e rimanda agli errori MSB3822/MSB3823. Leggi prima la tabella e le indicazioni collegate sugli errori. Aggiungi una nota che descriva la limitazione relativa all’incorporamento delle risorse in net48 e un link agli errori; il lavoro sarà terminato quando i lettori potranno vedere che dotnet build e dotnet pack non supportano tutti i progetti net48.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
4.8k
Fork
6.1k
Merge medio
1g 3h
PR unite (30g)
263

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/docs

Tutte le issue di dotnet/docs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.