<div dir="ltr">Hi,<div><br></div><div>I see there have been a few changes to xbuild since February 10th, 2014.  February 10th is the last time I was able to build my local C# project using mono head.  This is a simple project that I have just started and am planing to build on both mono and .NET.  The issue seems to be that xbuild has changed how it finds mcs.  /opt/local/JenkinsBuilds/bin/mcs -> /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe - see below.</div>
<div><br></div><div>My locally build mono install is in /opt/local/JenkinsBuilds and my builds are all run via Jenkins.</div><div><br></div><div>The build process is:</div><div>- use premake5 to generate Visual Studio 2012 project files (note I am using .net 4.5 specific features)</div>
<div>- use xbuild to build </div><div>- use mono version of nunit to test</div><div><br></div><div>The working build out put was like this:</div><div><pre class="" style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">
+ /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
XBuild Engine Version 12.0
Mono, Version 3.2.7.0
Copyright (C) 2005-2013 Various Mono authors

Build started 2/10/2014 9:56:00 PM.
__________________________________________________
Project "/var/lib/jenkins/jobs/CI/workspace/QTS.sln" (default target(s)):
        Target ValidateSolutionConfiguration:
                Building solution configuration "Debug|Any CPU".
        Target Build:
                Project "/var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj" (default target(s)):
                        Target PrepareForBuild:
                                Configuration: Debug Platform: AnyCPU
                        Target GenerateSatelliteAssemblies:
                        No input files were specified for target GenerateSatelliteAssemblies, skipping.
                        Target GenerateTargetFrameworkMonikerAttribute:
                        Skipping target "GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.
                        Target CoreCompile:
                                Tool <b>/opt/local/JenkinsBuilds/bin/mcs</b> execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs Utilities/Measurements/PerformanceStatistics.cs /target:library /define:"DEBUG;TRACE" /platform:AnyCPU /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll /warn:4</pre>
<pre class="" style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px"><br></pre>The broken build is now producing:</div><div><pre class="" style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">
+ /opt/local/JenkinsBuilds/bin/xbuild QTS.sln
XBuild Engine Version 12.0
Mono, Version 3.2.7.0
Copyright (C) 2005-2013 Various Mono authors

Build started 2/15/2014 8:50:52 AM.
__________________________________________________
Project "/var/lib/jenkins/jobs/CI/workspace/QTS.sln" (default target(s)):
        Target ValidateSolutionConfiguration:
                Building solution configuration "Debug|Any CPU".
        Target Build:
                Project "/var/lib/jenkins/jobs/CI/workspace/QTS/QTS.csproj" (default target(s)):
                        Target PrepareForBuild:
                                Configuration: Debug Platform: AnyCPU
                                Created directory "bin/Debug/"
                                Created directory "obj/Debug/"
                        Target CopyFilesMarkedCopyLocal:
                                Copying file from '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll' to '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll'
                                Copying file from '/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll.mdb' to '/var/lib/jenkins/jobs/CI/workspace/QTS/bin/Debug/mscorlib.dll.mdb'
                        Target GenerateSatelliteAssemblies:
                        No input files were specified for target GenerateSatelliteAssemblies, skipping.
                        Target CoreCompile:
                                Tool /opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/QTS.dll Properties/AssemblyInfo.cs Utilities/Math.cs Utilities/Measurements/PerformanceStatistics.cs obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:library /define:"DEBUG;TRACE" /nostdlib /platform:AnyCPU /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.dll /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/System.Core.dll /reference:/opt/local/JenkinsBuilds/lib/mono/4.5/mscorlib.dll /warn:4
/opt/local/JenkinsBuilds/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/opt/local/JenkinsBuilds/lib/mono/4.5/mcs.exe': </pre><pre class="" style="white-space:pre-wrap;word-wrap:break-word;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-size:11px">
<br></pre></div><div><br></div><div>I checked the commit logs, and it looks like there are commits that would affect this behavior.  Now, it might be that I was doing something wrong from the start and now I need to fix the process, but it seems like a simple process.</div>
<div><div>e753ca2 Michael Hutchinson [xbuild] Fix dependency in C# targets</div><div>c197478 Michael Hutchinson [xbuild] Fix 2.0 tests to handle mcs sdk argument</div><div>693176c Michael Hutchinson [xbuild] Fix Tooltask.ToolPath behaviour to match .NET</div>
<div>df52831 Michael Hutchinson [xbuild] Make ToolLocationHelper work better for 2.0/3.5</div><div>a55c588 Michael Hutchinson [xbuild] Fix typo that broke 2.0/3.5 targets</div><div>c705849 Michael Hutchinson [xbuild] Fix mscorlib resolution for custom frameworks</div>
</div><div><br></div><div>So, is this a bug in xbuild?</div><div><br></div><div>Thank you</div><div><br></div><div>Michael</div></div>