从Visual Studio运行应用程序的多个副本 [英] Run multiple copies of an app from Visual Studio

查看:192
本文介绍了从Visual Studio运行应用程序的多个副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Visual Studio在Debug中运行同一个应用程序的多个副本?例如,如何运行 app.exe / option1 app.exe / option2 并仍然调试?我知道我可以手动运行它们,然后附加,但是我想要一个自动化的解决方案。

How can I run multiple copies of the same app in Debug with Visual Studio? For instance, how do I run app.exe /option1 and app.exe /option2 and still debug both? I know I can run them manually and then attach, but I want an automated solution.

我已经尝试编写一个小型控制台应用程序来运行2个进程,但显然他们没有在调试器下运行。任何想法?

I have tried writing a small console app just to run 2 processes, but obviously they are not being run under debugger. Any ideas?

推荐答案

我最终创建了一个单独的项目,并调用应用程序的 Program.Main() / code>从那里))

I ended up creating a separate project and calling application's Program.Main() from there :)

这篇关于从Visual Studio运行应用程序的多个副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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