0

We are using a project file, which then calls MSBuild task. For example,

<Target Name="Clean">
  <MSBuild Targets="Clean" Projects="@(Solution)"/>
</Target>

In the project file I now define a variable which I want to pass to MSBuild task.

Lex Li
  • 60,503
  • 9
  • 116
  • 147
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43

1 Answers1

0

I found it out by myself! This works:

<Target Name="Clean">
  <MSBuild Targets="Clean" Projects="@(Solution)" Properties="Key=Value"/>
</Target>
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43