Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

.NET 11 example for sln filters editing is misleading

Aperta Adatta ai principianti
#56,551 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
82/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
documentation

Direzione di ricerca

La issue rimanda a docs/core/whats-new/dotnet-11/sdk.md, righe 110–115. Leggi quella sezione e controlla le opzioni di dotnet new slnf, quindi aggiorna l’esempio omettendo .slnf da --name e includendo --parent-solution. Il lavoro è completato quando l’esempio usa il nome corretto e mostra l’opzione della soluzione padre.

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

Descrizione

:watch: Not Triaged
Describe the issue or suggestion

In the article for what's new for the .NET SDK in .NET 11 there is a section about the new soultion filter file creation command and how you can also edit the file with the dotnet sln command.

https://github.com/dotnet/docs/blob/5e19883f3aca93e649d9e3fb72b0b89091d7079f/docs/core/whats-new/dotnet-11/sdk.md?plain=1#L110-L115

I think this example could be better.

First, it uses the --name option which you would likely also do, but in the sample they type in MyApp.slnf as the value, but that would create a new solution filter file called MyApp.slnf.slnf which is probably not what we want. So the actual value for that option in the sample should be without the .slnf suffix.

Secondly, I think that most would use the dotnet new slnf command with the -s, --parent-solution <parent-solution> option as the default is almost never what you would use, so I think it would make sense to use that in the example.

So a better sample in my opinion would be something like:

```bash
dotnet new slnf --parent-solution MySolution.slnx --name Tests
dotnet sln Tests.slnf add tests/Tests/Tests.csproj
dotnet sln Tests.slnf add src/Lib/Lib.csproj
dotnet sln Tests.slnf list
dotnet sln Tests.slnf remove src/Lib/Lib.csproj
```
Lingua principale
Nessun dato sulla lingua
Stelle
4.8k
Fork
6.1k
Merge medio
1g 5h
PR unite (30g)
147

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.