我使用项目中的“发布”选项发布我的Excel加载项,只需点击几下即可创建发布。然后我运行由Publish创建的setup.exe将其安装到Excel中。虽然我检查了发布选项,但我仍然遇到问题:另一台计算机不会安装加载项;发布仅适用于我运行编译的PC,但有例外:
System.Deployment.Application.InvalidDeploymentException: Application manifest has
either a different computed hash than the one specified or no hash specified at all.
---> System.Deployment.Application.InvalidDeploymentException: File, SMGMT_Translation.dll.manifest, has a different computed hash than specified in manifest.
at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
我很欣赏有关如何克服它的信息。我使用VS 2012.