Skip to content

Conversation

@SeferMirza
Copy link
Member

@SeferMirza SeferMirza commented Jan 23, 2025

This epic: learning about the relevant features in .NET 9.

Tasks

Migration Notes

Here we list the operations performed when upgrading projects to .Net 9

Note

The order is not important for now.

- [ ] Upgrade `dotnet` and `language` version in `csproj` or `build.props`
- [ ] Upgrade `dotnet` version to 9 and `checkout`, `setup-dotnet` version to
  `4` in workflows
- [ ] Upgrade libraries to new versions
- [ ] (Optional) If `Base64` encoded information is carried in the url, use
  `Base64Url`.
- [ ] (Optional) If you need to take parameters with an `Array` using `params`
  and then convert to `IEnumerable` type, use `IEnumerable` instead of `Array`.
- [ ] (Optional) `GeneratedRegex` can work with properties. It can be switched
  for a better usage.
- [ ] (Optional) See if `UseExceptionHandler(ExceptionHandlerOptions options)`
  override is available. Especially for the `StatusCodeSelector` property.
- [ ] (Optional) Use the new linQ extensions(`CountBy`, `AggregateBy`,
  `Index<TSource>(IEnumerable<TSource>)`).
- [ ] (Optional) Use new  `TimeSpan.From*` overloads
  - `FromDays`
  - `FromHours`
  - `FromMinutes`
  - `FromSeconds`
  - `FromMilliseconds`
  - `FromMicroseconds`
- [ ] (Optional) Use Keyed Services in Middlewares.

@SeferMirza SeferMirza self-assigned this Jan 23, 2025
@SeferMirza SeferMirza marked this pull request as ready for review January 30, 2025 19:50
@SeferMirza SeferMirza requested a review from cihandeniz January 30, 2025 19:50
@SeferMirza SeferMirza merged commit baf04b7 into main Jan 31, 2025
1 check passed
@SeferMirza SeferMirza deleted the epic/dotnet-9 branch January 31, 2025 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants