Vinicius Seganfredo
Vinicius Seganfredo

Reputation: 1774

How to run tests before program?

I have 2 projects: One of them is my program's project and the another one is my program's test project. I have setted my test project as my startup project, but when I run my program, the Visual Studio runs only the tests. If I try to set my program's project as my startup program, my tests do not run. There is a way to run both simultaneously? Or run the tests before my program?

Upvotes: 1

Views: 352

Answers (2)

Sagar Dev Timilsina
Sagar Dev Timilsina

Reputation: 1400

You cannot run two projects like that. But when one of your project is running, you can: 1. "right click" on another project 2. Go to "Debug" 3. Go to "Start New Instance".

You can run your both projets.. Try it..

Reference Link: http://iamfixed.blogspot.de/2017/10/run-multiple-projects-in-visual-studio.html

Upvotes: 4

mwjohnson
mwjohnson

Reputation: 661

Not ideal but would having multiple start up projects be a potential solution? If so, here is how.

Upvotes: 1

Related Questions