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

Compatibility issues of Helixtoolkit.Wpf with .NET 8 (NU1701), discussion on Long-term Support and Migration Strategy #2217

Closed
sebkraemer opened this issue May 13, 2024 · 2 comments

Comments

@sebkraemer
Copy link

sebkraemer commented May 13, 2024

Version: 2.25.0

Package: HelixToolkit.Wpf

Issue: I'm seeking guidance/feedback and community support for migrating HelixToolkit.Wpf to .NET 8.0. The compiler issues the following:

warning NU1701: Package 'HelixToolkit.Wpf 2.25.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0-windows7.0'. This package may not be fully compatible with your project.

Reproduce Steps:

  1. Create a windows project with target .NET 8.0.
  2. Add Helixtoolkit.Wpf with NuGet as dependency.

I am evaluating the use of Helix-Toolkit and the HelixToolkit.Wpf or possibly SharpDX.Wpf components for an upcoming project. It shall be based on WPF, and I want to start the project based on .net8. I noticed that the existing nuget package is only built for .net framework 4.6.

The initial tests and migration steps for HelixToolkit.Wpf were successful, however I got the aforementioned compiler warning. The successful part is limited to the wpf component only, not I also encountered significant challenges when trying to update other dependent projects within the same solution, esp. tests and examples projects. The samples use the propertytools.wpf component which is .net framework based and apparently not really maintained any more. Wpf.Input complains with Cannot add reference 'TDx.TDxInput.dll' to project 'HelixToolkit.Wpf.Input' because their target frameworks are incompatible.

I'm now wondering if going forward with helixtoolkit solution is an option. I would appreciate any insights, shared experiences, or advice on handling this situation, especially:

  • Are there already plans/discussions to migrate the wpf components to .NET8?
  • Is there community interest and support for ongoing and future .NET versions?
  • Do you know of any compatibility issues with .NET 8.0 that could impact the usage of HelixToolkit.Wpf or SharpDX.Wpf?

Thank you for any guidance you can provide!

@sebkraemer
Copy link
Author

Apparently, issue #100 already talks about modernizing HelixToolkit.Wpf.Input.

@holance
Copy link
Member

holance commented May 13, 2024

You need to use Helixtoolkit.core.wpf for dot net 6 above.

@holance holance closed this as completed May 28, 2024
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

No branches or pull requests

2 participants