Metric / VCDiff

Full C# implementation of open-vcdiff
29 stars 9 forks source link

System.BadImageFormat in runTime #1

Open andersonr opened 6 years ago

andersonr commented 6 years ago

I'm having a 'System.BadImageFormatException' when my application try to load the assembly VCDiff.

image

Metric commented 6 years ago

What does the additional information say in English? Did you compile the VCDiff DLL yourself? Is your app building as 32bit or 64bit? VCDiff DLL compiles as x64 by default, and not ANY CPU in the project properties -> build -> platform target. If you are on a 32bit system, then you will need to change that property in build to x86 in VCDiff. If your application is set to compile as 32bit then the DLL built in 64bit will not work for it.