在设计时访问代码中的解决方案属性 [英] Accessing solution properties in code at design time

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

问题描述

大家好,

我们有一个与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!

推荐答案

您好,j2asociates,

根据您的描述,您是说要构建自定义的启动项目"吗?解决方案中使用Visual STudio 2010 IDE中的选择器,以便可以使用它使多个项目成为启动项目(在解决方案上按Ctrl F5时将被取消)?
Hi j2asociates,

Based on your description, do you mean you want to build a custom "startup project" selector in Visual STudio 2010 IDE for your solution, so that you can use it to make multiple projects become startup projects (be launced when you ctrl F5 on the solution)?


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆