Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set build order without using project reference

In our solution we have more than 150 projects, now most of projects are using some .js file, which is generated by another project. So I need build this project before others. I know I can set the other projects are reference this project, but the problem is that we have nearly 100 projects that needs those .js file, add this project as reference project to 100 projects is not the best option.

So how can I set the build order without adding project reference?

Thanks any advice.


1 Answers

In Visual Studio, for each project that depends on your dependant project X:

  1. Right-click project
  2. Choose Build Dependencies...
  3. Choose Project Dependencies
  4. Tick the project this project depends on
  5. Click OK
  6. Repeat steps 1-5 for all other projects

Sadly, selecting multiple projects (at least in VS2017) won't let you apply the settings to more than one project at a time