How to retrieve @(TargetOutputs) without performing a build

后端 未结 1 714
伪装坚强ぢ
伪装坚强ぢ 2021-01-13 04:19

I\'m implementing an MSBuild framework to drive the building and deployment of many projects organized as a hierarchy.


  &         


        
相关标签:
1条回答
  • 2021-01-13 04:34

    Never mind.

    I stumbled upon the following similar question, and figured I had to use the GetTargetPath target, like so:

    <Target Name="_CoreBuild">
      <MSBuild Projects="@(Project)" Targets="GetTargetPath" Properties="Configuration=$(Configuration)">
        <Output TaskParameter="TargetOutputs" ItemName="CompiledAssemblies" />
      </MSBuild>
    </Target>
    
    0 讨论(0)
提交回复
热议问题