如何判断安装程序中的哪个程序集不是64位?

时间:2022-07-03 13:31:27

I am trying to install a windows service written in c#/ VS2010, which uses a number of libraries I wrote. I am developing on a 32-bit machine, but I am deploying to a 64-bit machine. I keep getting the BadImageFormatException during the install process, telling me one of my assemblies (or a dependency) is not loadable. I have scoured my solution looking for non-64-bit assemblies, and I cannot find any. How can I find the guilty party?

我正在尝试安装用c#/ VS2010编写的Windows服务,它使用了我编写的一些库。我正在使用32位计算机进行开发,但我正在部署到64位计算机。我在安装过程中不断收到BadImageFormatException,告诉我其中一个程序集(或依赖项)不可加载。我已经搜索了我的解决方案,寻找非64位程序集,我找不到任何东西。我怎么能找到有罪的一方?

1 个解决方案

#1


1  

After more hours of frustration and the lack of an answer, I decided to rewrite the service as a console app. It installs, it works. Even if it is a bit ghetto.

经过几个小时的挫折和缺乏答案,我决定将服务重写为控制台应用程序。它安装,它的工作原理。即使它有点贫民窟。

#1


1  

After more hours of frustration and the lack of an answer, I decided to rewrite the service as a console app. It installs, it works. Even if it is a bit ghetto.

经过几个小时的挫折和缺乏答案,我决定将服务重写为控制台应用程序。它安装,它的工作原理。即使它有点贫民窟。