是否可以在 VS2010 中的同一解决方案中运行另一个项目时编辑一个项目中的文件?
几乎我们所有的 Windows 项目都包含 WCF Windows 托管服务和 WPF 客户端应用程序。所有这些通常分为两种不同的解决方案,一种用于服务,一种用于客户端。这样做的原因有很多,但我们最近正在考虑将它们全部放在一个新项目中,我们也这样做了。这意味着不必运行 Visual Studio 的两个副本,并且可以更轻松地处理其他各种事情。
我们现在关心的是能够在调试服务时编辑 WPF 客户端。许多开发人员在对客户端进行更改时会保持服务在一天中的大部分时间运行。但看起来通过此设置,当您开始调试服务时,Visual Studio 将不允许您编辑解决方案中的任何其他代码。
有没有办法解决这个问题,以便您可以随时运行该服务,并且仍然能够编辑其他项目中的 WPF 和 CS 文件?或者这两个部分应该保留在两个单独的解决方案中?
Almost all of our Windows projects consist of a WCF windows hosted service and then a WPF client application. All of these have usually been split into two different solutions, one for the service, one for the client. This was done for various reasons, but we recently were looking at possibly putting them all together on a new project, which we did. This would mean not having to run two copies of Visual Studio and make it easier for various other things.
Our concern now is being able to edit the WPF client while debuging the service. Many of the developers will keep the service running a large part of the day when making changes in the client. But it looks like with this setup, when you start debuging the service, Visual Studio will not let you edit any of the other code in the solution.
Is there a way around this, so that you could have the service running whenever you want, and still be able to edit the WPF and CS files in the other project? Or should these two parts stay in two separate solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将需要两个 Visual Studio 实例:一个用于调试服务,另一个用于编码。
您还可以想象在不附加调试器的情况下运行服务,并且仅在准备启动/调试正在处理的客户端时才手动附加它。
You'll want two instances of Visual Studio: one doing the debugging of the service and the other one for coding.
You could also imagine having the service running without the debugger attached, and only attach it manually when you're ready to launch/debug the client you were working on.