Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I use xbuild to build release binary

Tags:

c#

xbuild

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

like image 856
Petr Avatar asked Jul 13 '13 09:07

Petr


1 Answers

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.

like image 179
Mark Carpenter Avatar answered Nov 12 '22 11:11

Mark Carpenter