PreBuild for PreBuild Event Command in csproj

2019-09-08 07:24发布

问题:

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.