I have a C# WinForms program developed in VS 2022 on Win 11 which uses MediaInfoDotNet 0.7.79.40925 installed from NuGet. On the development machine, the program works OK, but when I create an installer for x64 and install on a Win 10 test machine, the program crashes when executing MediaFile m = new MediaFile(file)
where MediaFile is the class MediaInfoDotNet.MediaFile with the error "An attempt was made to load a program with an incorrect format". The installer places the file MediaInfo.dll in the same folder as MediaInfoDotNet.dll and MediaInfo.dll is flagged as vsdrfDoNotRegister in the Visual Studio Installer project. Both MediaInfoDotNet.dll and MediaInfo.dll are 32-bit dlls.
Asked
Active
Viewed 44 times
0

Jay Li
- 31
- 3