beforebuild target of all the projects are executing at first on solution build

冷暖自知 提交于 2020-01-25 06:43:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!