问题
In our solution, I have two projects which contain a .tt file. My build order should be as follows
> 1. project_A Template transform
> 2. project_A Build
> 3. Project_A resource DLL will be created in the post-build event.
> 4. Project_B Template transform
> 5. Project_B Build
I am using the following target invocation in csproj file or both project,
<Target Name="BeforeBuild">
<CallTarget Targets="Transform" ></CallTarget>
</Target>
In visual studio, each beforebuild target is called separately so its working fine. But in TFS build I am using MSBuild cmd argument. In that beforebuild target is invoked at first so i cant achieve my order of build.
来源:https://stackoverflow.com/questions/59817808/beforebuild-target-of-all-the-projects-are-executing-at-first-on-solution-build