Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 10, 2026

.NET 6.0 reached end of support. This updates test projects to net9.0 for continued security and tooling support.

Changes

  • Updated TargetFramework from net6.0 to net9.0 in:
    • TestSolution_NUnit_Tests.csproj
    • TestSolution_XUnit_Tests.csproj
    • TestSolution_MSTest_Tests.csproj
    • TestSolution_EdgeDriver_Tests.csproj

All existing package versions in Directory.Packages.props are already net9.0-compatible. The referenced TestSolution.csproj targets netstandard2.0 and requires no changes.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dnceng.pkgs.visualstudio.com
    • Triggering command: /usr/bin/dotnet dotnet restore TestSolution.sln (dns block)
    • Triggering command: /usr/bin/dotnet dotnet build --no-restore (dns block)
    • Triggering command: /usr/bin/dotnet dotnet restore --configfile /tmp/NuGet.config (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Summary

Update all test projects that currently target net6.0 to target net9.0.

Files to Update

The following project files need their TargetFramework property changed from net6.0 to net9.0:

  1. src/SourceBrowser/TestCode/TestSolution_NUnit_Tests/TestSolution_NUnit_Tests.csproj
  2. src/SourceBrowser/TestCode/TestSolution_XUnit_Tests/TestSolution_XUnit_Tests.csproj
  3. src/SourceBrowser/TestCode/TestSolution_MSTest_Tests/TestSolution_MSTest_Tests.csproj
  4. src/SourceBrowser/TestCode/TestSolution_EdgeDriver_Tests/TestSolution_EdgeDriver_Tests.csproj

Required Change

In each file, change:

<TargetFramework>net6.0</TargetFramework>

to:

<TargetFramework>net9.0</TargetFramework>

Additional Considerations

  • Ensure all NuGet package references (e.g., Microsoft.NET.Test.Sdk, NUnit3TestAdapter, xunit.runner.visualstudio, MSTest.TestAdapter, Selenium.WebDriver, coverlet.collector) are compatible with .NET 9. Update package versions if necessary.
  • Check if TestSolution.csproj (referenced by all test projects) also needs to be updated to net9.0.
  • Verify the solution builds and tests pass after the upgrade.

Context

.NET 6.0 has reached end of support. Upgrading to .NET 9.0 ensures the projects use a supported framework version with the latest security patches, performance improvements, and language features.

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: radical <1472+radical@users.noreply.github.com>
Copilot AI changed the title [WIP] Update test projects to target net9.0 from net6.0 Update test projects from net6.0 to net9.0 Jan 10, 2026
Copilot AI requested a review from radical January 10, 2026 02:10
@radical radical requested review from ericstj and joperezr January 10, 2026 02:11
@radical radical marked this pull request as ready for review January 10, 2026 02:11
@radical
Copy link
Member

radical commented Jan 10, 2026

Other projects are also net 8/9 right now, so I didn't move this to net10 either.


<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
Copy link
Member

Choose a reason for hiding this comment

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

Curious, why not net10?

Copy link
Member

Choose a reason for hiding this comment

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

Other projects are also net 8/9 right now, so I didn't move this to net10 either. This would keep the changes limited.

Future PRs can move all the netX.0 projects to net10.0 .

@radical radical merged commit fd77960 into main Jan 12, 2026
2 checks passed
@radical radical deleted the copilot/update-target-framework-to-net9 branch January 12, 2026 22:21
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