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 some dependencies #272

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Upgrade some dependencies #272

wants to merge 5 commits into from

Conversation

dthaler
Copy link
Collaborator

@dthaler dthaler commented Feb 12, 2025

Upgrade to .NET 9.0

Summary by CodeRabbit

  • Chores
    • Upgraded the system’s underlying framework to .NET 9.0 for improved performance and enhanced compatibility.
    • Updated key dependency packages, including those supporting testing and code generation, ensuring increased stability and reliability.

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Copy link

coderabbitai bot commented Feb 12, 2025

Walkthrough

The pull request updates three project files by upgrading their target framework from .NET 8.0 to .NET 9.0. In addition, it bumps several package versions: OrcanodeMonitor now uses the 9.0.0 version of Microsoft.VisualStudio.Web.CodeGeneration.Design, and the Test project receives updates to coverlet.collector, Microsoft.NET.Test.Sdk, MSTest.TestAdapter, and MSTest.TestFramework. The TransferData project file is updated solely for the framework version.

Changes

File(s) Change Summary
OrcanodeMonitor/OrcanodeMonitor.csproj Updated <TargetFramework> from net8.0 to net9.0; updated Microsoft.VisualStudio.Web.CodeGeneration.Design from 8.0.6 to 9.0.0.
Test/Test.csproj Updated <TargetFramework> from net8.0 to net9.0; updated coverlet.collector (6.0.0 → 6.0.4), Microsoft.NET.Test.Sdk (17.8.0 → 17.13.0), MSTest.TestAdapter (3.1.1 → 3.8.0), MSTest.TestFramework (3.1.1 → 3.8.0).
TransferData/TransferData.csproj Updated <TargetFramework> from net8.0 to net9.0.

Poem

Oh, I hop with joyful might,
Celebrating changes shining bright,
Frameworks leaped from eight to nine,
Dependencies in perfect line,
A bunny’s code dance into the light!


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🔭 Outside diff range comments (1)
OrcanodeMonitor/OrcanodeMonitor.csproj (1)

17-25: ⚠️ Potential issue

Ensure consistent package versions across all Microsoft packages.

There's a version mismatch between Microsoft packages:

  • Microsoft.VisualStudio.Web.CodeGeneration.Design is on 9.0.0
  • Other Microsoft packages (EntityFrameworkCore.*) are on 8.0.10

This could lead to compatibility issues. Please ensure all Microsoft packages are on the same major version (8.0.x).

-    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" />
+    <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.6" />
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d1624ea and cf0d71d.

📒 Files selected for processing (3)
  • OrcanodeMonitor/OrcanodeMonitor.csproj (2 hunks)
  • Test/Test.csproj (2 hunks)
  • TransferData/TransferData.csproj (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • TransferData/TransferData.csproj
🧰 Additional context used
🪛 GitHub Actions: CodeQL
OrcanodeMonitor/OrcanodeMonitor.csproj

[error] 166-166: The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0.

Test/Test.csproj

[error] 166-166: The current .NET SDK does not support targeting .NET 9.0. Either target .NET 8.0 or lower, or use a version of the .NET SDK that supports .NET 9.0.

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: build_windows (Release)
  • GitHub Check: build_windows (Debug)
🔇 Additional comments (1)
Test/Test.csproj (1)

13-16: Verify package version compatibility with .NET 8.0.

Let's verify that the updated package versions are compatible with .NET 8.0.

✅ Verification successful

🌐 Web query:

What are the latest versions of coverlet.collector, Microsoft.NET.Test.Sdk, MSTest.TestAdapter, and MSTest.TestFramework that are compatible with .NET 8.0?

💡 Result:

The latest compatible versions of these packages with .NET 8 are:

Coverlet.Collector

  • Version: ≥6.0.x
  • Requirements:
    • Requires Microsoft.NET.Test.Sdk ≥17.5[1][6]
    • Compatible with SDK v6+ (including .NET 8)[1]
    • Sample configuration shows v6+ working with net48/net6+ targets[1]

Microsoft.NET.Test.Sdk

  • Version: ≥17.8
  • Critical requirement:
    • For .NET 8 targeting:
      • Minimum version 17.8 required[2]
      • Version 17.9 required for SDK v8.0.400+[2]

MSTest Components

Package Version Key Compatibility
TestAdapter ≥3.x (latest v3.7.x) Supports net8+ via dependencies[3][9]
TestFramework ≥3.x (latest v3.7.x) Explicitly lists net8+ compatibility[8][9]

Required configuration:

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9" />
<PackageReference Include="coverlet.collector" Version="6.x">
<PackageReference Include="MSTest.TestAdapter" Version="3.x" />
<PackageReference Include="MSTest.TestFramework" Version="3.x" />

Note: These versions align with Microsoft's requirement that .NET SDK v8+ needs Visual Studio/MSBuild v17.9+ for full compatibility[2][9]. The MSTest SDK (v3.x) provides native support through its runner integration[5][7][9].

Citations:


Package version compatibility check

  • coverlet.collector (6.0.4): This version falls within the 6.x range and is compatible with .NET 8.
  • Microsoft.NET.Test.Sdk (17.13.0): This exceeds the minimum required version of 17.9 for .NET 8.
  • MSTest.TestAdapter (3.8.0) and MSTest.TestFramework (3.8.0): Both being in the 3.x range meet the compatibility requirements for .NET 8.

The current configuration in the file aligns with the compatibility requirements for .NET 8 testing. No further changes are necessary.

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Revert to .NET 8.0 as .NET 9.0 is not yet supported.

The pipeline is failing because .NET 9.0 is not yet supported by the current .NET SDK. Please revert to .NET 8.0.

-    <TargetFramework>net9.0</TargetFramework>
+    <TargetFramework>net8.0</TargetFramework>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Revert to .NET 8.0 as .NET 9.0 is not yet supported.

The pipeline is failing because .NET 9.0 is not yet supported by the current .NET SDK. Please revert to .NET 8.0.

-    <TargetFramework>net9.0</TargetFramework>
+    <TargetFramework>net8.0</TargetFramework>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>

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.

1 participant