Skip to content

Conversation

@n-tiz
Copy link

@n-tiz n-tiz commented Apr 15, 2025

Hello !

This PR restores multi-targeting support for .NET Framework 4.8 along with .NET 8/9 in the WPF MediaKit project (and the Test Application).
What i have done:

  • Updated the WPF MediaKit project and test application to target .NET Framework 4.8 along with .NET 8 and 9.
  • Added conditional references for DirectShowLib NuGet package based on the target framework (DirectShowLib for .NET Framework, DirectShowLib.Net for .NET 8/9).
  • Implemented #if preprocessor directive in DvdPlayer to handle code differences between the two packages (DirectShowLib and DirectShowLib.Net).

I needed to replace the DirectShowLib-2005.dll with the DirectShowLib NuGet package, which makes managing versions easier and avoids relying on a specific DLL file (which is a real problem for me in my project).

In my case, moving to .NET Core is not an option due to project-specific dependencies, so maintaining support for .NET Framework is still necessary.

I don’t believe there’s a strong reason to stop supporting .NET Framework, as many projects still depend on it, especially in legacy environments.

If this PR is accepted, I’ll also work on making similar changes for DirectShowLib.Net, which will help clean up dependencies and remove the need for #if conditions in the code.

PS : I'll leave it to you to update the README.md and the version number, hoping that a NuGet package will be published soon!

- Updated the WPF MediaKit project and test application to target .NET Framework 4.8 along with .NET 8 and 9.
- Added conditional references for DirectShowLib NuGet package based on the target framework (DirectShowLib for .NET Framework, DirectShowLib.Net for .NET 8/9).
- Implemented #if preprocessor directive in DvdPlayer to handle code differences between the two packages (DirectShowLib and DirectShowLib.Net).
@n-tiz
Copy link
Author

n-tiz commented Jun 11, 2025

Hello,
Just following up on this PR opened about two months ago. Please let me know if there's anything you'd like me to adjust or clarify.
Looking forward to your feedback — thanks in advance!

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