📝 Walkthrough
## Walkthrough
This pull request updates various project files and configurations to support .NET 9.0. Changes include modifying the target framework in `Directory.Build.props`, updating SDK versions in `global.json`, and upgrading numerous package references across multiple project files. Additionally, Dockerfiles have been adjusted to use the new .NET 9.0 base images. These updates aim to ensure compatibility with the latest .NET features and enhancements.
## Changes
| File | Change Summary |
|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| Directory.Build.props | Updated `` from `net8.0` to `net9.0`. |
| global.json | Updated SDK version from `8.0.403` to `9.0.100`. |
| src/Digdir.Domain.Dialogporten.Application/Digdir.Domain.Dialogporten.Application.csproj | Updated package references: `HtmlAgilityPack` from `1.11.70` to `1.11.71`, `Microsoft.Extensions.Hosting` from `8.0.1` to `9.0.0`, `Microsoft.Extensions.Options.ConfigurationExtensions` from `8.0.0` to `9.0.0`. |
| src/Digdir.Domain.Dialogporten.ChangeDataCapture/Digdir.Domain.Dialogporten.ChangeDataCapture.csproj | Added package references: `System.Text.Json` version `9.0.0`, `System.Drawing.Common` version `9.0.0`. |
| src/Digdir.Domain.Dialogporten.ChangeDataCapture/Dockerfile | Updated base image from `8.0.10` to `9.0.0` and SDK image from `8.0.403` to `9.0.100`. |
| src/Digdir.Domain.Dialogporten.ChangeDataCapture/Outbox/OutboxReplicationMapper.cs | Updated method parameter type from `IReadOnlyDictionary` to `Dictionary`. |
| src/Digdir.Domain.Dialogporten.GraphQL/Digdir.Domain.Dialogporten.GraphQL.csproj | Updated package references: `Microsoft.AspNetCore.Authentication.JwtBearer` from `8.0.10` to `9.0.0`, added `Microsoft.IdentityModel.JsonWebTokens` at `8.2.0`, `System.Drawing.Common` at `9.0.0`, and `System.IdentityModel.Tokens.Jwt` at `8.2.0`. |
| src/Digdir.Domain.Dialogporten.GraphQL/Dockerfile | Updated base image from `8.0.10` to `9.0.0` and SDK image from `8.0.403` to `9.0.100`. |
| src/Digdir.Domain.Dialogporten.Infrastructure/Digdir.Domain.Dialogporten.Infrastructure.csproj | Updated package references: `Microsoft.Extensions.Caching.StackExchangeRedis` from `8.0.10` to `9.0.0`, added `Microsoft.IdentityModel.JsonWebTokens` at `8.2.0`, `System.Text.Json` at `9.0.0`, and `System.IdentityModel.Tokens.Jwt` at `8.2.0`. |
| src/Digdir.Domain.Dialogporten.Infrastructure/MigrationBundle.dockerfile | Updated base image from `8.0.10` to `9.0.0` and SDK image from `8.0.403` to `9.0.100`. |
| src/Digdir.Domain.Dialogporten.Janitor/Digdir.Domain.Dialogporten.Janitor.csproj | Removed ``, updated all Microsoft.Extensions package references to version `9.0.0`. |
| src/Digdir.Domain.Dialogporten.Janitor/Dockerfile | Updated base image from `8.0.10` to `9.0.0` and SDK image from `8.0.403` to `9.0.100`. |
| src/Digdir.Domain.Dialogporten.Service/Dockerfile | Updated base image from `8.0.10` to `9.0.0` and SDK image from `8.0.403` to `9.0.100`. |
| src/Digdir.Domain.Dialogporten.WebApi/Digdir.Domain.Dialogporten.WebApi.csproj | Updated package references: `Microsoft.AspNetCore.Authentication.JwtBearer`, `Microsoft.AspNetCore.Mvc.NewtonsoftJson`, `Microsoft.AspNetCore.OpenApi` from `8.0.10` to `9.0.0`, added `Microsoft.IdentityModel.JsonWebTokens` at `8.2.0` and `System.IdentityModel.Tokens.Jwt` at `8.2.0`. |
| src/Digdir.Domain.Dialogporten.WebApi/Dockerfile | Updated base image from `8.0.10` to `9.0.0` and SDK image from `8.0.403` to `9.0.100`. |
| src/Digdir.Library.Utils.AspNet/Digdir.Library.Utils.AspNet.csproj | Updated `Microsoft.Extensions.Http` from `8.0.1` to `9.0.0`, added `System.Text.Json` at `9.0.0`, `System.Drawing.Common` at `9.0.0`, and updated `OpenTelemetry` from `1.9.0` to `1.10.0`. |
| src/Digdir.Tool.Dialogporten.SlackNotifier/Digdir.Tool.Dialogporten.SlackNotifier.csproj | Updated `Microsoft.Azure.Functions.Worker` from `1.23.0` to `2.0.0`, `Microsoft.Azure.Functions.Worker.Sdk` from `1.18.1` to `2.0.0`, and `Microsoft.Extensions.Configuration.UserSecrets` from `8.0.1` to `9.0.0`. Added `System.Text.Json` at `9.0.0`. |
| tests/Digdir.Domain.Dialogporten.Application.Integration.Tests/Digdir.Domain.Dialogporten.Application.Integration.Tests.csproj | Added package references: `Microsoft.IdentityModel.JsonWebTokens` at `8.2.0`, `System.IdentityModel.Tokens.Jwt` at `8.2.0`, `System.Drawing.Common` at `9.0.0`, `System.Formats.Asn1` at `9.0.0`. |
| tests/Digdir.Domain.Dialogporten.Application.Unit.Tests/Digdir.Domain.Dialogporten.Application.Unit.Tests.csproj | Updated `Verify.Xunit` from `28.1.3` to `28.2.1`. |
| tests/Digdir.Domain.Dialogporten.Architecture.Tests/Digdir.Domain.Dialogporten.Architecture.Tests.csproj | Removed properties: ``, ``, ``, updated `Microsoft.Build` from `17.11.4` to `17.12.6`. |
| tests/Digdir.Domain.Dialogporten.GraphQl.Integration.Tests/Digdir.Domain.Dialogporten.GraphQl.Integration.Tests.csproj | Updated `Microsoft.AspNetCore.Mvc.Testing` from `8.0.10` to `9.0.0`, updated `Verify.Xunit` from `28.2.0` to `28.2.1`. |
| tests/Digdir.Domain.Dialogporten.GraphQl.Unit.Tests/Digdir.Domain.Dialogporten.GraphQl.Unit.Tests.csproj | Removed properties: ``, ``, ``. |
| tests/Digdir.Domain.Dialogporten.WebApi.Integration.Tests/Digdir.Domain.Dialogporten.WebApi.Integration.Tests.csproj | Updated `Microsoft.AspNetCore.Mvc.Testing` from `8.0.10` to `9.0.0`, updated `Verify.Xunit` from `28.2.0` to `28.2.1`. |
| tests/Digdir.Tool.Dialogporten.SlackNotifier.Tests/Digdir.Tool.Dialogporten.SlackNotifier.Tests.csproj | Removed properties: ``, ``, ``. |
## Possibly related issues
- **digdir/dialogporten#1199**: This issue requests an upgrade to .NET 9, which aligns with the objectives of this PR to upgrade all projects to .NET 9.
## Possibly related PRs
- **#875**: Updates the target framework to .NET 9.0, relevant to this PR.
- **#1124**: Updates the SDK version in `global.json` to .NET 9.0, aligning with this PR's changes.
- **#1177**: Updates package references in the `Infrastructure` project, related to overall project configuration changes.
- **#1433**: Updates various NuGet package versions, directly related to the changes in this PR regarding project configuration and dependencies.
## Suggested reviewers
- **MagnusSandgren**: Suggested for review based on expertise and involvement in related projects.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
❤️ Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips
### Chat
There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai):
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
- `I pushed a fix in commit , please review it.`
- `Generate unit testing code for this file.`
- `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
- `@coderabbitai generate unit testing code for this file.`
- `@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
- `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
- `@coderabbitai read src/utils.ts and generate unit testing code.`
- `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
- `@coderabbitai help me debug CodeRabbit configuration file.`
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
### CodeRabbit Commands (Invoked using PR comments)
- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.
### Other keywords and placeholders
- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.
### Documentation and Community
- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
📝 Walkthrough
## Walkthrough This pull request updates various project files and configurations to support .NET 9.0. Changes include modifying the target framework in `Directory.Build.props`, updating SDK versions in `global.json`, and upgrading numerous package references across multiple project files. Additionally, Dockerfiles have been adjusted to use the new .NET 9.0 base images. These updates aim to ensure compatibility with the latest .NET features and enhancements. ## Changes | File | Change Summary | |----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------| | Directory.Build.props | Updated `Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
❤️ Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)🪧 Tips
### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit