模块中的 Prism 第三方控制组件
我有一个 prism 应用程序,我已将第三方 WPF 控件库添加到我的模块之一。
当我运行我的应用程序时,出现无法找到 dll 的异常。使用融合日志查看器,我看到正在外壳项目箱中而不是模块中查找程序集。
如果我还要添加对 shell 的引用,那么它会正常工作,但显然会破坏模块化设计的要点。
其他人有如何使其发挥作用的经验吗?
I have a prism app where I've added a third party WPF control library to one of my modules.
I get an exception that the dll cannot be found when I run my application. Using fusion log viewer I see that the assembly is being looked for in the shell prject bin rather than in the module.
If I were to add a reference to the shell as well then that would get it working but clearly would break the point of a modular design.
Anyone else have experience of how to get this working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了处理这种部署问题,我通常在 Visual Studio 项目构建后执行 xcopy 命令事件,将所有模块依赖项甚至模块本身(当项目之间没有直接引用时,通常不应该是这种情况)复制到运行文件夹(shell bin 文件夹)中。
瑞安娜
To handle this kind of deployment problem, I usually execute an xcopy command on Visual Studio project post-build events, to copy all modules dependencies and even modules themselves ( when there are no direct references between projects, and that should not be the case normally) into the running folder (the shell bin folder).
Riana