Use a 32-bit assembly in 64-bit environment
问题 I am trying to integrate DevIL.NET into 3ds Max to automatically convert my images to a single format. To do so, I created a class library in C# that accepts a string and returns the new file path public static class FileConverter { public static string ConvertFile(string _sOriginal) { // Load the file, save the file, return the new filepath } } The project is referencing to DevIL.NET, which is a 32-bit build. My application is a 64-bit build and gives a BadImageFormatException . Saying that