在Visual Studio中一次运行两个项目

本文翻译自:Running two projects at once in Visual Studio

I created a solution in Visual C# 2010 Express that contains two projects: one is the client, the other is the server. 我在Visual C#2010 Express中创建了一个包含两个项目的解决方案:一个是客户端,另一个是服务器。 I would like to debug both at the same time, but I can only seem to run one of the projects during debugging. 我想同时调试这两个,但我似乎只能在调试期间运行其中一个项目。

Is there a way to run both at once? 有没有办法同时运行两个?


#1楼

参考:https://stackoom.com/question/G9Z5/在Visual-Studio中一次运行两个项目


#2楼

Go to Solution properties → Common properties → Startup Project and select Multiple startup projects. 转到解决方案属性→公共属性→启动项目,然后选择多个启动项目。

解属性对话框


#3楼

Max has the best solution for when you always want to start both projects, but you can also right click a project and choose Debug > Start New Instance. 当您总是想要启动这两个项目时,Max拥有最佳解决方案,但您也可以右键单击项目并选择“调试”>“启动新实例”。

This is an option when you only occasionally need to start the second project or when you need to delay the start of the second project (maybe the server needs to get up and running before the client tries to connect, or something). 当您偶尔需要启动第二个项目或需要延迟第二个项目的启动时(这可能是服务器需要在客户端尝试连接之前启动并运行,或者其他东西),这是一个选项。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值