问题
Can I specify in csproj file that the exe being executed in prebuild events should be built before executing it?
回答1:
You can do it through Visual Studio which will actually edit your .csproj file in fact.
Right click on the project and select Project Dependencies and select the project which you need to build before this project. Verify it by selecting the Build order tab.
来源:https://stackoverflow.com/questions/10426029/prebuild-for-prebuild-event-command-in-csproj