Running multiple projects in visual studio

2019-04-12 08:05发布

问题:

I'm running visual studio express 2012 on Windows 7 through Bootcamp. I have a solution with several projects, and when I start debugging it runs the first project, but I can't start new instances of the others (when I right click and choose debug -> start new instance it is grayed out).

I tried creating a new solution with two blank projects and I have the same problem.

Any ideas?

回答1:

Right click on Solution -> Common Properties -> Startup Project -> Multiple startup projects -> Choose "Start" actions in drop-down lists. Now start debugging as usual.



回答2:

Right Click -> Debug -> Start New Instance is not available for all types of projects. Usually projects of the type class libraires have this option missing.

Thanks, Karthik



回答3:

Use the new instance of Visual studio in order to debug the other project.