尽管正确引用,但未找到强类型程序集
我们有一个利用夏普架构的项目。为了进行一些测试,我们进行了一些调整以强类型化某些程序集。
此后,该项目将不再建设。 VS2010抱怨:
错误CS0012:类型'SharpArch.Core.PersistenceSupport.IRepositoryWithTypedId`2'是在未引用的程序集中定义的。您必须添加对程序集“SharpArch.Core,Version=1.5.0.0,Culture=neutral,PublicKeyToken=b5f559ae0ac4e006”的引用。
该参考已被删除并重新添加。它也在 GAC 中,并且我们已验证公钥令牌是否匹配。
We have a project which utilizes Sharp Architecture. For the purposes of some testing, we made some adjustments to strongly type some assemblies.
Following this, the project would no longer build. VS2010 complained that:
error CS0012: The type 'SharpArch.Core.PersistenceSupport.IRepositoryWithTypedId`2' is defined in an assembly that is not referenced. You must add a reference to assembly 'SharpArch.Core, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b5f559ae0ac4e006'.
The reference has been removed and re-added. It's also in the GAC and we've verified that the Public Key Token matches.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需检查您是否在 x64 模式下运行即可。否则事情将无法进行。转到 vs 项目属性并将其更改为 x64。
Just check if you are running in x64 mode. Otherwise things will not work. Go to the vs project properties and change it to x64.
这是我的清单,最可能的原因位于最上面。
This is my checklist with the most likely cause on top.