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 ASP.NET Core 9 #1017

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

Update to ASP.NET Core 9 #1017

wants to merge 14 commits into from

Conversation

martincostello
Copy link
Owner

@martincostello martincostello commented Feb 13, 2024

  • Update to ASP.NET Core 9.
  • Replace NSwag with Microsoft.AspNetCore.OpenApi.
  • Fix/suppress new code analysis warnings.

@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

codecov bot commented Feb 13, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.

Project coverage is 90.17%. Comparing base (f9957f8) to head (9ff8fb1).

Files with missing lines Patch % Lines
src/TodoApp/Program.cs 25.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1017      +/-   ##
==========================================
- Coverage   92.19%   90.17%   -2.03%     
==========================================
  Files          18       18              
  Lines         282      285       +3     
  Branches       22       22              
==========================================
- Hits          260      257       -3     
- Misses         14       20       +6     
  Partials        8        8              
Flag Coverage Δ
linux 90.17% <25.00%> (-2.03%) ⬇️
macos 90.17% <25.00%> (-2.03%) ⬇️
windows 90.17% <25.00%> (-2.03%) ⬇️

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 1d91a01 to dfcf0a4 Compare March 12, 2024 20:03
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from e1581a2 to 7c066e5 Compare April 5, 2024 09:21
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from d84364c to 0183109 Compare April 9, 2024 19:28
@martincostello martincostello force-pushed the dotnet-vnext branch 2 times, most recently from 3bbe489 to cee6d23 Compare May 28, 2024 22:01
@martincostello martincostello force-pushed the dotnet-vnext branch 4 times, most recently from f5029c0 to 7467cd4 Compare June 14, 2024 15:16
@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello
Copy link
Owner Author

@costellobot rebase

@martincostello
Copy link
Owner Author

@costellobot rebase

tests/TodoApp.Tests/HttpServerFixture.cs Dismissed Show dismissed Hide dismissed
martincostello and others added 13 commits October 8, 2024 17:02
Update to preview 1 of ASP.NET Core 9.
* Update .NET SDK

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 <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-preview.2.24157.14 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.1.24081.5 to 9.0.0-preview.2.24128.4.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-preview.1.24081.2 to 9.0.0-preview.2.24128.4.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
* Update .NET SDK

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 <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-preview.3.24204.13 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.2.24128.4 to 9.0.0-preview.3.24172.13.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-preview.2.24128.4 to 9.0.0-preview.3.24172.4.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
Disable noisy CA1515 warning in the ruleset.
* Update .NET SDK

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 <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-preview.4.24267.66 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.3.24172.13 to 9.0.0-preview.4.24267.6.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-preview.3.24172.4 to 9.0.0-preview.4.24267.1.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
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 <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-preview.5.24307.3 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.4.24267.6 to 9.0.0-preview.5.24306.11.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-preview.4.24267.1 to 9.0.0-preview.5.24306.3.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
Migrate from NSwag to the new Microsoft.AspNetCore.OpenApi NuGet package.
* 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 <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-preview.6.24328.19 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.5.24306.11 to 9.0.0-preview.6.24328.4.
Bumps Microsoft.AspNetCore.OpenApi from 9.0.0-preview.5.24306.11 to 9.0.0-preview.6.24328.4.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-preview.5.24306.3 to 9.0.0-preview.6.24327.4.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.AspNetCore.OpenApi
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
* Update .NET SDK

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

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

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-preview.7.24407.12 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-preview.6.24328.4 to 9.0.0-preview.7.24406.2.
Bumps Microsoft.AspNetCore.OpenApi from 9.0.0-preview.6.24328.4 to 9.0.0-preview.7.24406.2.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-preview.6.24327.4 to 9.0.0-preview.7.24405.3.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.AspNetCore.OpenApi
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

* Fix build
Rename method.

* Fix method name

Verb changed from Use to Add.

* Fix build
Fix obsolete warning by using `X509CertificateLoader.LoadPkcs12FromFile()`.

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Revert back to using the latest version of C# instead of preview.
Update .NET SDK to version 9.0.100-rc.1.24452.12.

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

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
Update NuGet packages for RC1.
* Update .NET SDK

Update .NET SDK to version 9.0.100-rc.2.24474.11.

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

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

* Bump .NET NuGet packages

Bumps .NET dependencies to their latest versions for the .NET 9.0.100-rc.2.24474.11 SDK.

Bumps Microsoft.AspNetCore.Mvc.Testing from 9.0.0-rc.1.24452.1 to 9.0.0-rc.2.24474.3.
Bumps Microsoft.AspNetCore.OpenApi from 9.0.0-rc.1.24452.1 to 9.0.0-rc.2.24474.3.
Bumps Microsoft.EntityFrameworkCore.Sqlite from 9.0.0-rc.1.24451.1 to 9.0.0-rc.2.24474.1.

---
updated-dependencies:
- dependency-name: Microsoft.AspNetCore.Mvc.Testing
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.AspNetCore.OpenApi
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: Microsoft.EntityFrameworkCore.Sqlite
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>

* Fix NU1904 warning

Update transient reference to System.Text.Encodings.Web.

---------

Signed-off-by: costellobot <102549341+costellobot@users.noreply.github.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
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.

2 participants