在设计时访问代码中的解决方案属性

在设计时访问代码中的解决方案属性

本文介绍了在设计时访问代码中的解决方案属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们有一个与WCF一起嵌入WindowsService的项目.为了方便测试,我们有一个客户表格和一个主机表格.这个项目有多个WCF服务,因此我们有4个ClientForm和4个HostForm.我们正在使用多个启动项目 通过在设计时右键单击解决方案文件并选择多个客户端和主机,可以访问该解决方案.我想将该功能放在允许动态切换的表单上(例如,Client1,Host1,Client3,Host3, 等).

We have a project working with WCF embedded in a WindowsService. To facilitate testing, we have a Client Form and a Host Form. This project has multiple WCF services so we have 4 ClientForms and 4 HostForms. We are using multiple start up projects in the solution which is accessed by right clicking the Solution file at design time and selecting multiple clients and hosts. I would like to put that functionality on a form to allow dynamic switching (eg a series of check boxes for Client1, Host1, Client3, Host3, etc).

我猜想这与使用EVNDTE有关,但是最近我还没有使用过.可以很容易地做到这一点吗?如果是这样,有人会友善地发布一些代码来帮助我入门吗?预先感谢您的任何想法和/或建议!

I'm guessing this pertains to using EVNDTE but I have not used that very much recently. Can this be done fairly easily, and if so, would someone be kind enough to post some code to get me started? Thanks in advance for any ideas and / or suggestions!

推荐答案


这篇关于在设计时访问代码中的解决方案属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 09:38