You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use the latest version of WPFMediaKit on a .net 9 WPF project the application will fail to start due to the following exception:
System.Windows.Markup.XamlParseException: "The invocation of the constructor on type 'WPFMediaKit.DirectShow.Controls.VideoCaptureElement' that matches the specified binding constraints threw an exception
...
Inner Exception
FileNotFoundException: Could not load file or assembly 'DirectShowLib-2005, Version=2.1.0.26626, Culture=neutral,
PublicKeyToken=67e7b740cdfc2d3f'.` The system cannot find the file specified.
The dll does exist in the project output directory and both the version and PublicKeyToken match what it is looking for.
Steps to Reproduce
Create a new WPF project that is targeting .net 9.0
Add WPFMediaKit 3.0.0 package to the project
Add a VideoCaptureElement to the MainWindow
Start the application
More Information
Before the latest updates I had been maintaining a private version of this project with support for .net 6. When I added that support I remember seeing this issue before, and I sort of remember it being caused by how the NuGet package is created. However, that was a while ago so I might be misremembering this issue. Please let me know if there is any more information I can provide.
The text was updated successfully, but these errors were encountered:
I'm sorry! It's a miserable hassle with creating a NuGet package and the native dependencies and the DirectShowLib. In the end, I thought it would work now, but obviously something was still cached.
I have now extracted and forked the DirectShowLib, migrated it to .NET 9 and created a separate NuGet package for it, which is used by WPF MediaKit. The two native EVRPresenter DLLs are now attached in such a way that they end up in the runtimes folder.
Hopefully everything should work now.
Description
When trying to use the latest version of WPFMediaKit on a .net 9 WPF project the application will fail to start due to the following exception:
The dll does exist in the project output directory and both the version and PublicKeyToken match what it is looking for.
Steps to Reproduce
More Information
Before the latest updates I had been maintaining a private version of this project with support for .net 6. When I added that support I remember seeing this issue before, and I sort of remember it being caused by how the NuGet package is created. However, that was a while ago so I might be misremembering this issue. Please let me know if there is any more information I can provide.
The text was updated successfully, but these errors were encountered: