WPF Prism 组件 StrongNaming

发布于 2024-09-15 05:41:42 字数 243 浏览 3 评论 0原文

我正在尝试对我的 WPF 程序集进行强命名以添加到 GAC 中。我引用了我的项目中的 prim 程序集,编译失败并显示

错误 1 ​​程序集生成失败 - 引用的程序集“Microsoft.Practices.Composite.Presentation”没有强名称

我缺少什么?我确实理解这里发生的事情,但我认为自己签署棱镜组件不是一个好主意。其他人在这种(或类似)情况下会做什么?

I am trying to strong name my WPF assemblies to add to the GAC. I have references to the to the prim assemblies in my project and the compilation fails with

Error 1 Assembly generation failed -- Referenced assembly 'Microsoft.Practices.Composite.Presentation' does not have a strong name

What am I missing? I do understand what is happening here but I dont think its a good idea to sign the prism assemblies myself. What does everyone else do in such (or similar) situations?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遮云壑 2024-09-22 05:41:42

我不太了解 Prism,但这是发布版本吗?

无论如何,如果作者没有对他们的程序集进行强命名,他们就不打算将他们的程序集和派生程序集放入 GAC 中。

也许您应该重新考虑该决定,GAC 应该很少使用。

I'm not up to speed with Prism, but is this a release version?

Anyway, if the authors didn't strong-name their assemblies they did not intend their assemblies and derived ones to be put in the GAC.

And maybe you should just re-think that decision, the GAC should be used very rarely.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文