问题
I am using VS 2015 and .net framework 4.6. I have one solution with multiple projects. When i build the solutions it works fine. I build solution and all the projects for Release x64. I have one installer project as well which contains dll of all the projects. When i build the installer it build successfully. The real problem comes when i am trying to install that build. It gives me an exception : BadImageFormatException
回答1:
Check the NET FW versions. If there is code targeted at the NET 4.0 CLR a NET 2 CLR (up to and including NET 3.x) won't load it.
(Added as an answer following poster's response).
来源:https://stackoverflow.com/questions/47345168/badimageformatexception-when-trying-to-install-msi