how can I use xbuild to build release binary
Asked Answered
M

1

44

When I use xbuild it always use debug as target, how do I make it use release?

For example I would expect something like

xbuild --release

but that doesn't work

Marchelle answered 13/7, 2013 at 9:6 Comment(0)
P
65

It looks like you should be able to so something like this:

xbuild /p:Configuration=Release MySolution.sln

Check out the MSBuild reference for additional options - I'm not sure if xbuild is 100% in line with what MSBuild supports, but it might be helpful to you.

Priester answered 13/7, 2013 at 9:34 Comment(1)
wow. alias xbuild-rel="xbuild /p:Configuration=Release" is what I neededMarchelle

© 2022 - 2024 — McMap. All rights reserved.