2

I am using a MSBuild task to build a solution:

<MSBuild Projects="$(MySln)" ToolsVersion="4.0"/>

I want to get a list of the dlls/exes (their full path) output when above solution is built for subsequent processing. How can I do this?

Geeky Guy
  • 9,229
  • 4
  • 42
  • 62
morpheus
  • 18,676
  • 24
  • 96
  • 159

1 Answers1

2

Try the TargetOutputs output parameter:

    <MSBuild Projects="YourSolution.sln">
      <Output TaskParameter="TargetOutputs" ItemName="TheOutputs" />
    </MSBuild>

    <Message Text="@(TheOutputs)" Importance="High" />

Some other similar questions:

Community
  • 1
  • 1
Brian Walker
  • 8,658
  • 2
  • 33
  • 35