I’m currently working on integrating the Basler.Pylon.dll into my WinUI 3 project for camera control. But my project can even not initialize.
I’ve previously asked a related question, but the error messages had misled me… So, I want to focus on how to correctly reference and use Balser.Pylon.dll, or how to make Basler-related code work in the WinUI 3 code-behind, which is C#
.
I found this question, so I tried removing the DLL and adding NuGet Package Basler.Pylon.NET.x64
, v8.0.0.10.
The project worked, but the Basler function didn’t – CameraFinder.Enumerate()
is empty, which means that there aren’t any devices that can be connected. The camara can be found via the Basler API, though.
This situation is alike this question, but in C#
. Also, in this answer I found out that only using Basler.Pylon.dll
as reference should work.
How can I correctly reference and use Basler.Pylon.dll
in my WinUI 3 project?