jjxtra
jjxtra

Reputation: 21170

Combine MSBuild solution output to one folder

What is the simplest way in MSBuild to override the output for all projects in a solution to go to a single folder?

Upvotes: 4

Views: 837

Answers (2)

radical
radical

Reputation: 4424

Set $(OutDir) to gather output of all the projects in one location.

Upvotes: 1

jjxtra
jjxtra

Reputation: 21170

You have to specify an absolute path for /p:OutputPath= because a relative path will go relative to each project file.

Upvotes: 2

Related Questions