y62wang
y62wang

Reputation: 568

run a project before main project in visual studio

I have a project that I use to convert an input text file to css. I want to run this project every time I run my MVC project so it generates the newest css file.

I know that I can run a Task in BeforeBuild to achieve this, but it requires that I link to the dll file for my project. (This is a problem because if I use a dll file, then I would have to manually update the dll file

Is there a way I can build and run my first project, then launch MVC?

Upvotes: 1

Views: 162

Answers (1)

CD Smith
CD Smith

Reputation: 6607

Right click the MVC project in the solution and select Project Dependencies, then check the project that you want to be built first

enter image description here

That will make sure that the dependency project builds first.

Then right click on Solution, select Properties and select Multiple startup projects in order to run two projects

Upvotes: 2

Related Questions