0

I have a .dll that my project uses which is generated by a project in a separate solution.

I have a conditional MSBuild Target which will build this project and copy the .dll if the .dll does not exist.

I am building with this command inside my Target:

<Exec Command="MSBuild Bar.vcxproj /p:Configuration=$(Configuration)" WorkingDirectory="..\..\Foo\Bar" />

Is there an MSBuild command that I could use to accomplish this other than Exec?

radical
  • 4,364
  • 2
  • 25
  • 27
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288

1 Answers1

2

You can use the MSBuild task for this, something like:

<MSBuild Projects="..\..\Foo\Bar\Bar.vcxproj" Properties="Configuration=$(Configuration)"/>

radical
  • 4,364
  • 2
  • 25
  • 27