组织 WPF 项目的最佳方式
我最近开始在 WPF 中开发一个新软件,但我仍然不知道哪种是组织应用程序的最佳方式,以便使用 Visual Studio 和 Expression Blend 提高工作效率。
我注意到我想要解决的两件烦人的事情:
- 我在项目中使用代码契约,当我使用 Expression Blend 运行我的项目时,它会启动代码的静态分析。我怎样才能阻止呢?
- Blend 默认使用哪种项目配置?我尝试在新配置中禁用代码合同。它在 VS 中有效,因为静态分析未启动,但在 Blend 中没有任何效果。
我考虑过将 Windows 应用程序分成两部分:第一部分包含 WPF (app.exe) 的视图,第二部分是项目的核心,包含逻辑代码 (app.core.dll),我会在 Blend 中打开前一个项目。
对此有什么想法吗?
预先感谢
迈克
I've started recently to develop a new software in WPF, and I still don't know which is the best way to organize the application, to be more productive with Visual Studio and Expression Blend.
I noticed 2 annoying things I'd like to solve:
- I'm using Code Contracts in my projects, and when I run my project with Expression Blend, it launches the static analysis of the code. How can I stop that?
- Which configuration of the project does Blend use by default? I've tried to disable Code Contracts in a new configuration. It works in VS as the static analysis is not launched, but it has no effects in Blend.
I've thinked about splitting the Windows Application in 2 parts: the first one containing the views of the WPF (app.exe) and the second one being the core of the project, with the logic code (app.core.dll), and I would just open the former project in Blend.
Any thoughts about that?
Thanks in advance
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个人的一些答案:http://drwpf.com/blog/2007/ 10/01/58/
Check out this guy for some answers: http://drwpf.com/blog/2007/10/01/58/