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

Upgrade to .NET 6 and C# 10 #1309

Merged
merged 84 commits into from
Nov 11, 2021
Merged

Upgrade to .NET 6 and C# 10 #1309

merged 84 commits into from
Nov 11, 2021

Conversation

RehanSaeed
Copy link
Member

@RehanSaeed RehanSaeed commented Oct 13, 2021

All Solution Templates

  • Switch to net6.0 target framework.
  • Update to .NET 6 NuGet packages.
  • Use ArgumentNullException.ThrowIfNull(...).
  • Use record class over record.
  • Bump actions/checkout to 2.4.0.

API

  • Add ProblemDetailsOperationFilter for API template to use.
  • Use strongly typed HTTP headers properties instead of headers dictionary.
  • Use GetRequiredSection instead of GetSection.
  • Make options class properties [Required].
  • Remove dotnetRunMessages from launchSettings.json as its no longer required.
  • Add hotReloadProfile to launchSettings.json.
  • Simplify resolving ApplicationOptions from DI in integration tests.
  • Bump Boxed.AspNetCore from 7.0.0 to 8.0.0.
  • Bump Boxed.AspNetCore.Swagger from 9.1.0 to 10.0.0.
  • Bump Boxed.Mapping from 5.3.0 to 6.0.0.
  • Bump Microsoft.ApplicationInsights.AspNetCore from 2.18.0 to 2.19.0.
  • Bump Serilog.Enrichers.Span from 1.4.0 to 2.0.0.
  • Bump Serilog.Exceptions from 7.1.0 to 8.0.0.
  • Bump Microsoft.VisualStudio.Threading.Analyzers from 17.0.63 to 17.0.64.
  • Disable Swagger UI in production mode.
  • Configure HostOptions.ShutdownTimeout to 3 mins.
  • Bump Docker images from 5.0 to 6.0.

GraphQL

  • Use GetRequiredSection instead of GetSection.
  • Make options class properties [Required].
  • Remove dotnetRunMessages from launchSettings.json as its no longer required.
  • Add hotReloadProfile to launchSettings.json.
  • Simplify resolving ApplicationOptions from DI in integration tests.
  • HumanObject.DateOfBirth now uses DateOnly instead of DateTime.
  • Removed custom scalar System.DateTime mapped to Date.
  • Bump Boxed.AspNetCore from 7.0.0 to 8.0.0.
  • Bump Boxed.Mapping from 5.3.0 to 6.0.0.
  • Bump HotChocolate.* from 12.0.1 to 12.1.0.
  • Bump Microsoft.ApplicationInsights.AspNetCore from 2.18.0 to 2.19.0.
  • Bump Serilog.Enrichers.Span from 1.4.0 to 2.0.0.
  • Bump Serilog.Exceptions from 7.1.0 to 8.0.0.
  • Bump Microsoft.VisualStudio.Threading.Analyzers from 17.0.63 to 17.0.64.
  • Configure HostOptions.ShutdownTimeout to 3 mins.
  • Bump Docker images from 5.0 to 6.0.

NuGet

Orleans

  • Bump Microsoft.ApplicationInsights.AspNetCore from 2.18.0 to 2.19.0.
  • Bump Microsoft.Orleans.* from 3.5.0 to 3.5.1.
  • Bump OrleansDashboard from 3.5.2 to 3.6.1.
  • Bump Serilog.Enrichers.Span from 1.4.0 to 2.0.0.
  • Bump Serilog.Exceptions from 7.1.0 to 8.0.0.
  • Bump Docker images from 5.0 to 6.0.

Item

  • Update .editorconfig item template.

@RehanSaeed RehanSaeed added enhancement Issues describing an enhancement or pull requests adding an enhancement. template/NuGet The NuGet package project template major Pull requests requiring a major version update according to semantic versioning. labels Oct 13, 2021
@RehanSaeed RehanSaeed added template/API The Swagger API project template template/GraphQL The GraphQL project template template/Item All item templates template/Orleans The Microsoft Orleans project template labels Oct 21, 2021
@RehanSaeed RehanSaeed changed the title Upgrade NuGet package template to .NET 6 & C# 10 Upgrade to .NET 6 and C# 10 Oct 21, 2021
@RehanSaeed RehanSaeed force-pushed the add-dotnet-6-and-csharp-10 branch from 3c186b3 to 3503dad Compare November 11, 2021 16:16
@RehanSaeed RehanSaeed merged commit 6863670 into main Nov 11, 2021
@RehanSaeed RehanSaeed deleted the add-dotnet-6-and-csharp-10 branch November 11, 2021 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues describing an enhancement or pull requests adding an enhancement. major Pull requests requiring a major version update according to semantic versioning. template/API The Swagger API project template template/GraphQL The GraphQL project template template/Item All item templates template/NuGet The NuGet package project template template/Orleans The Microsoft Orleans project template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.NET 6 Improvements MegaThread
1 participant