Skip to content

Upgrade to .NET 10 with multi-targeting#9

Merged
johnkors merged 4 commits intomainfrom
copilot/upgrade-library-to-dotnet10
Jan 12, 2026
Merged

Upgrade to .NET 10 with multi-targeting#9
johnkors merged 4 commits intomainfrom
copilot/upgrade-library-to-dotnet10

Conversation

Copy link
Contributor

Copilot AI commented Jan 12, 2026

.NET 10 Upgrade - COMPLETED ✅

All Changes Completed Successfully:

  • Update SomeClassLib.csproj to target net9.0 and net10.0 (multi-target)
  • Add .NET 10 version property and conditional package references for .NET 10
  • Update SomePeerDependency.csproj to target net9.0 and net10.0 (multi-target)
  • Update SomeClassLib.Tests.csproj to target net10.0
  • Update GitHub Actions workflows (CI.yml, PreRelease.yml, Release.yml) to use actions/setup-dotnet@v5 and dotnet-version: 10.0.x
  • Build and test the updated project to verify changes
  • Fix code review feedback (ImplicitUsing -> ImplicitUsings typo)
  • Use MSBuild variables in conditional package references
  • Run security checks (0 vulnerabilities found)

Summary of Changes:

Project Files:

  • Removed net8.0 target framework
  • Added net10.0 target framework
  • Updated all projects to multi-target net9.0 and net10.0
  • Added conditional package references using MSBuild variables for .NET 9 and .NET 10
  • Fixed ImplicitUsings property name in test project

GitHub Actions Workflows:

  • Updated from actions/setup-dotnet@v4 to actions/setup-dotnet@v5
  • Updated from dotnet-version: 9.0.x to dotnet-version: 10.0.x
  • Applied to all three workflows: CI.yml, PreRelease.yml, Release.yml

Verification Results:

  • ✅ Build successful for both net9.0 and net10.0 targets
  • ✅ All tests passing on .NET 10 (1 test passed)
  • ✅ Package creation successful with both frameworks included
  • ✅ Multi-targeting verified (net9.0 and net10.0 assemblies present)
  • ✅ Conditional package references verified (net9.0 uses 9.0.0 packages, net10.0 uses 10.0.0 packages)
  • ✅ Code review feedback addressed
  • ✅ Security scan completed (0 vulnerabilities)

Security Summary:

No security vulnerabilities were found in the changes.

Original prompt

Upgrade this library to .NET 10

  • TFM : .net9.0,.net10.0 (multi-target)
  • build scripts, update to actions/setup-dotnet@v5 and .net 10

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 12, 2026 11:18
Co-authored-by: johnkors <206726+johnkors@users.noreply.github.com>
Co-authored-by: johnkors <206726+johnkors@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade library to .NET 10 and update build scripts Upgrade to .NET 10 with multi-targeting Jan 12, 2026
Copilot AI requested a review from johnkors January 12, 2026 11:22
Copy link
Owner

@johnkors johnkors left a comment

Choose a reason for hiding this comment

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

@copilot , check comments and update

Co-authored-by: johnkors <206726+johnkors@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 12, 2026

@copilot , check comments and update

Updated both conditions to use MSBuild variables as requested. The conditional package references now properly use $(DotNet9Version) and $(DotNet10Version) for framework matching, with separate package version variables. Build and tests verified successfully. Commit: af247f0

Copilot AI requested a review from johnkors January 12, 2026 12:16
@johnkors johnkors added the enhancement New feature or request label Jan 12, 2026
@johnkors johnkors marked this pull request as ready for review January 12, 2026 12:18
@johnkors johnkors merged commit f8460e4 into main Jan 12, 2026
2 checks passed
@johnkors johnkors deleted the copilot/upgrade-library-to-dotnet10 branch January 12, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants