I am integrating the Milestone SDK into a Windows Forms app running .NET Framework 4.7.2. The application works as intended inside of Visual Studio. Building the application is also successful. However, when publishing the application with a ClickOnce deployment, I am facing the following error when attempting to load video:
“Could not load file or assembly ‘VideoOS.Toolkit.dll’ or one of its dependencies. The specified module could not be found. At …”
Screenshot of the error attached below.
I have tried building the application targeting the ‘Any CPU’ and ‘x64’ platforms. Both will launch successfully within Visual Studio, and from the exe within the bin/Debug folder. However, it runs into this same error when deployed with ClickOnce. Looking at the install folder from ClickOnce, the VideoOS.Toolkit.dll is found within the same folder as the exe, screenshot attached below: Any useful information / help would be greatly appreciated, thanks.

