[Mono-bugs] [Bug 584117] New: xbuild compiles only the first configuration in alphabetical order and lacks documentation

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 28 20:32:33 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=584117

http://bugzilla.novell.com/show_bug.cgi?id=584117#c0


           Summary: xbuild compiles only the first configuration in
                    alphabetical order and lacks documentation
    Classification: Mono
           Product: Mono: Tools
           Version: 2.6.x
          Platform: i586
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: xbuild
        AssignedTo: jankit at novell.com
        ReportedBy: djechelon at fastwebnet.it
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64;
Trident/4.0; MathPlayer 2.10d; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT
5.1; SV1) ; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET
CLR 3.5.21022; OfficeLivePatch.1.3; .NET CLR 3.5.30729;
OfficeLiveConnector.1.4; .NET CLR 3.0.30618)

Hello,
I found that xbuild, when run to build a whole VS2008 solution (with export
XBUILD_EMIT_SOLUTION), only compiles the first configuration available in
alphabetical order.

Actually, I know Visual Studio remembers the configuration to use by "magic",
as the solution's proprietary format doesn't include an "active configuration"
field, but I need to compile in release mode when deploying.

I found a workaround: just rename the Release configuration for the solution
into a name that preceeds Debug, or vice versa. This will let xbuild compile in
Release mode, whatever the build configurations are named inside projects (so,
even if subprojects have "Debug" and "Release" configuration, they will be
built according to the solution setting).
I suggest developers to add an option to xbuild that specifies the
configuration to use (ie. "--configuration configname").

Finally, xbuild lacks of documentation. There is no man page, and trying to run
xbuild --help ignores the help option and tries to compile a solution in the
current directory, so I don't know how to use program options, if there are
any.

Reproducible: Always

Steps to Reproduce:
1. Create a standard solution in Visual Studio, and add some projects. Make
sure that there are "Debug" and "Release" configurations
2. Deploy the whole source directory to Linux, run xbuild with
XBUILD_EMIT_SOLUTION set in environment
3. Notice that it was all compiled in Debug mode

4. Back to VS, rename "Release" to any name that alphabetically preceeds
"Debug" (ie. just "A")
5. Deploy again, run xbuild again
6. Notice that the solution was compiled in Release mode

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list