Yes, it is possible to move your solution to .NET 10. Here are the steps you can follow:
- Update Package References: For each project in your solution, you will need to update the package references in the project files to target .NET 10. For example, you should update the
Versionattribute of theMicrosoft.AspNetCore.*,Microsoft.EntityFrameworkCore.*, andMicrosoft.Extensions.*packages to10.0.0or later. - Class Library Project: Since your Class Library project is targeting
netstandard2.0, it will still be compatible with .NET 10 projects. The .NET 10 Console App, WPF App, and XUnit Tests projects can reference your Class Library without issues. - Project Compatibility: The Console App, WPF App, and XUnit Tests projects that are currently targeting .NET 9 will need to be updated to target .NET 10. You can do this by changing the target framework in their respective project files to
net10.0. - Testing: After making these changes, thoroughly test your applications to ensure that everything works as expected after the migration.
By following these steps, you should be able to successfully migrate your solution to .NET 10 while maintaining the references to your Class Library project.
References: