简体   繁体   English

通过C#代码在同一解决方案中对另一个项目执行“项目>调试>启动新实例”

[英]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.

相关问题 如何在调试模式下在解决方案中启动另一个项目 - How to start another project in the solution in Debug mode C#通过另一个项目解决方案发送数据通知(绑定) - C# Send Data Notifications through another project solution (Binding) 从相同解决方案C#的另一个项目访问资源文件 - Accessing Resource files from another project of same solution C# 从同一解决方案C#中的另一个项目中读取配置属性 - Read config properties from another project in the same solution C# 在C#中从同一项目创建新实例 - create new instance from same project in C# 如何在同一C#解决方案中以编程方式从“启动”项目中启动第二个项目? - How to programmatically start the second project from the “StartUp” project in the same C# solution? Visual Studio Solution(.sln) / C#:以另一个项目的 dll 作为参数启动一个项目 - Visual Studio Solution(.sln) / C#: Start a project with another project's dll as parameter 在Debug上发生错误,但在Start New Instance上没有发生错误,并且仅在另一个项目中使用Content Reference发生 - Error occurs on Debug, but not on Start New Instance, and only with a Content Reference in another project 我如何获取在Web项目中生成的pdf文件,并在同一解决方案c#中将其打印在另一个项目中 - How could I get a pdf file generated in a web project, and print it in another project in the same solution c# 在同一解决方案中在C#项目和C ++项目之间进行交互 - interacting between a C# project and C++ project in same solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM