Upgrade from `net9.0` to LTS (or STS) version
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 77/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- csharp
- Domain
- build-system
Research direction
Update the target framework in the five listed .csproj files, starting with each file’s target framework entry. Check the repository’s guidance for supported .NET versions and confirm the samples still build or run under the chosen version. Done when all listed projects target a supported version and their relevant validation succeeds.
Written by the indexing model from the issue text.
Description
The following project file(s) target a .NET version that's no longer supported.
This is an auto-generated issue, detailed and discussed in dotnet/docs#22271.
| Target version | End of life | Release notes | Nearest LTS TFM version |
|---|---|---|---|
net9.0 |
November, 10 2026 | net9.0 release notes | net10.0 |
- core/diagnostics/DiagnosticScenarios/DiagnosticScenarios.csproj
- core/getting-started/unit-testing-using-mstest/PrimeService.Tests/PrimeService.Tests.csproj
- csharp/delegates-and-events/delegates-and-events.csproj
- csharp/events/events.csproj
- csharp/getting-started/console-webapiclient/webapiclient.csproj
Consider upgrading projects to either the Standard Term Support (STS) or Long Term Support (LTS) versions.
If any of these projects listed in this issue are intentionally targeting an unsupported version,
you can optionally configure to ignore these results in future automation executions.
Create a (or update the) dotnet-versionsweeper.json file at the root of the repository and
add an ignore entry following the
globbing patterns detailed here.
{
"ignore": [
"**/path/to/example.csproj"
]
}
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 5.1k
- Avg merge
- 19h 47m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/samples
-
dotnet-target-version
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
dotnet-target-version
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Race condition in orleans/ShoppingCart/Grains/InventoryGrain.cs#L48Possibly taken @TimonPasslick claimed this 160 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
dotnet-target-version
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
dotnet-target-version
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Similar issues
-
:watch: Not Triaged dotnet-target-version
Difficulty 1/5 Under an hour Newbie friendliness 84/100
dotnet/docs-desktop#2313 ·
Maintainers usually reply within 4 days
-
:watch: Not Triaged dotnet-target-version
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
IntelliTect/Coalesce#794 · 1 comment ·
-
Project dependencies are outdatedPossibly taken @yasmoradi claimed this today. Opendependencies
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
bitfoundation/bitplatform#15562 ·
Maintainers usually reply within 1 day
-
bug priority:low severity:S3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
squid-farm/talewright#909 ·
Maintainers usually reply within 1 day