Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to .NET 9 #588

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft

Update to .NET 9 #588

wants to merge 18 commits into from

Conversation

martincostello
Copy link
Owner

  • Update to .NET 9.
  • Fix/suppress new code analysis warnings.
  • Drop support for net6.0 and net7.0.

@martincostello martincostello added enhancement New feature or request dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Feb 13, 2024
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file post-merge once the .NET 9 version is published to NuGet.org.

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.56%. Comparing base (a5d060d) to head (fc0a410).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #588      +/-   ##
==========================================
- Coverage   97.57%   97.56%   -0.01%     
==========================================
  Files           8        8              
  Lines         289      288       -1     
  Branches       31       31              
==========================================
- Hits          282      281       -1     
  Misses          2        2              
  Partials        5        5              
Flag Coverage Δ
linux 96.87% <100.00%> (-0.02%) ⬇️
macos 96.87% <100.00%> (-0.02%) ⬇️
windows 96.87% <100.00%> (-0.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 9aaab16 to de68607 Compare February 16, 2024 12:02
martincostello added a commit that referenced this pull request Mar 29, 2024
Fix new style warnings identified with .NET 9 in #588.
martincostello added a commit that referenced this pull request Mar 29, 2024
Fix new style warnings identified with .NET 9 in #588.
@martincostello martincostello force-pushed the dotnet-vnext branch 3 times, most recently from b93eb87 to 633e8d1 Compare April 9, 2024 19:30
@martincostello martincostello force-pushed the dotnet-vnext branch 4 times, most recently from 9d2e02c to cc772f7 Compare May 14, 2024 18:47
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 2dfd430 to d9fe1bc Compare May 23, 2024 04:11
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 2f60b03 to 1123872 Compare June 1, 2024 13:12
@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 776b1c0 to 8efee7f Compare June 11, 2024 17:12
@martincostello
Copy link
Owner Author

@costellobot rebase

martincostello and others added 18 commits July 10, 2024 15:52
Update to preview 1 of .NET 9.
Move TFM-specific APIs to the main baseline file.
- Use `Convert.ToHexStringLower()`.
- Use `CryptographicOperations.HashData()`.
Update .NET SDK to version 9.0.100-preview.2.24157.14.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Bump Microsoft.AspNetCore.TestHost for preview 2.
Update .NET SDK to version 9.0.100-preview.3.24204.13.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Bump Microsoft.AspNetCore.TestHost for .NET 9 preview 3.
Bump Microsoft.AspNetCore.TestHost for .NET 9 preview 3.
Update .NET SDK to version 9.0.100-preview.4.24267.66.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>
Bump Microsoft.AspNetCore.TestHost for .NET 9 preview 4.
Bump Mvc.Testing for .NET 9 preview 4.
Set `LangVersion=preview` to use C# 13.
* Update .NET SDK

Update .NET SDK to version 9.0.100-preview.5.24307.3.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>

* Bump packages

Update NuGet packages for .NET 9 preview 5.

* Remove PackageReference

Remove redundant package reference.

* Fix build

Correctly fix the package references.

* Remove package reference

Remove redundant package reference.

* Fix CI

Skip tests that cause CI to fail due to dotnet/sdk#41541.

---------

Signed-off-by: costellobot <[email protected]>
Co-authored-by: martincostello <[email protected]>
Remove pre-processor conditions that are now redundant.
Make the TFM-specific API baselines optional.
* Update .NET SDK

Update .NET SDK to version 9.0.100-preview.6.24328.19.

---
updated-dependencies:
- dependency-name: Microsoft.NET.Sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: costellobot <[email protected]>

* Suppress IDE0130
Suppress IDE0130 warnings.

---------

Signed-off-by: costellobot <[email protected]>
Co-authored-by: Martin Costello <[email protected]>
Remove workarounds for dotnet/sdk#41541.
Update NuGet packages for .NET 9 preview 6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants