[英]Doing “project>Debug>Start new instance” of an another project in the same solution through c# code
Is there a way to do this, visual studio " project>Debug>Start new instance ." 有没有办法做到这一点,Visual Studio“ 项目>调试>启动新实例” 。
Do this through c# code ? 通过c#代码执行此操作吗?
I mean starting 2nd project which is in the sample solution through a function in 1st project. 我的意思是通过第一个项目中的一个功能启动示例项目中的第二个项目。
say, I have 2 projects, 比如说我有两个项目
#project 1
#project 2, both are in same solution.
There is a function in #project 1 , #project 1中有一个功能,
say, 说,
public void startproject2()
{
//code for doing "project>Debug>Start new instance" #project 2
}
Is there a way to do that through c# code ? 有没有办法通过C#代码来做到这一点?
Sounds like you want to debug 2 projects at the same time. 听起来您想同时调试2个项目。
To do that, just right click on the solution and select Set Startup Projects... . 为此,只需右键单击解决方案,然后选择“ 设置启动项目...” 。 There you can select the projects that should be started and debugged if you press F5 to debug.
如果按F5进行调试,则可以在此处选择应启动和调试的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.