找不到类型库“Redemption”的包装器程序集
好的,我正在尝试将 .dll 文件添加到 Visual Studio 2010 中的应用程序。如果将其设置为 32 位,则一切正常。但是,一旦我将其切换到 64 位,该库就会出现警告并且无法加载。我假设错误“必须指定与输入类型库兼容的单个有效机器类型”与 .dll 未正确加载有关。如果应用程序升级到.NET4.0,它可以正常工作,但我需要尝试让它在.NET2.0 中工作。如果您能就导致 Visual Studio 无法识别 redemption64.dll 的原因提供任何建议,我们将不胜感激。
Okay, I am trying to add a .dll file to my application in Visual Studio 2010. If it is set for 32 bit, everything is fine. However, once I switch it to 64 bit, the library has a warning on it and wont load. I'm assuming the error "A single valid machine type compatible with the input type library must be specified" is related to the .dll not loading properly. It works fine if the application is moved up to .NET4.0 but I need to try and get this to work in .NET2.0. Any advice you can give on what is causing Visual Studio to not recognize the redemption64.dll would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
导入 Redemption 类型库时,请确保您的项目设置为构建为“任何 CPU”,而不是 x86 或 x64。
Make sure you project is set to build as "Any CPU", not x86 or x64 when you import the Redemption type library.