how can I set build order without adding project reference?
You do not want to set project reference or project dependencies to each of those 100 projects, but there is no such option that you can set multiple references at once.
To resolve this problem, I would like provide you two workarounds.
Build that referenced project first, then build the solution.
In this way, you should pay a attention to manually build the referenced project first. It seems you are not independent developer, this way should not the best option.
Using batch file to set the build order.
You can use batch file to set build order, build the referenced project first, then build the solution:
@echo OFF
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"
echo "Starting Build for all Projects with proposed changes"
MSBuild.exe "C:\Users\Admin\Source\repos\TestMSBuildOrder\GenerateJSFileProject\GenerateJSFileProject.csproj"
MSBuild.exe "C:\Users\Admin\Source\repos\TestMSBuildOrder\TestMSBuildOrder.sln"
pause
echo "All builds completed."
Hope this helps.