BadImageFormatException error in using InstallUtil tool

吃可爱长大的小学妹 提交于 2019-12-05 10:29:20

That error happens when you use the wrong version of installutil. For instance, you are using installutil.exe for .NET 2.0 but your target exe is built with 4.0 or you are using a 32 bit version of installutil on a 64 bit dll/exe.

It was built in VisualStudio with "AnyCPU", but I was using X64 version of Install util, I changed it to explicit say built it for X64 machine and got rid of that error. However now it is saying some other error but this error gets solved.

I set is as AnyCPU for both 32bit and 64 bit setups. It worked.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!