Bug 18794 - xbuild : Error executing task Csc with 2.0 toolset since Mono 3.4.0
Summary: xbuild : Error executing task Csc with 2.0 toolset since Mono 3.4.0
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: Other ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-04-03 10:06 UTC by Victor
Modified: 2014-04-03 16:07 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Victor 2014-04-03 10:06:22 UTC
Hi everybody,

Mono version :
3.2.8 OK
3.4.0 KO
3.4.1 KO

Mono JIT compiler version 3.4.0 (tarball Wed Apr  2 15:40:23 CEST 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen

Linux LXLYOXXXXX 2.6.32-279.el6.x86_64 #1 SMP Wed Jun 13 18:24:36 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux


xbuild /tv:2.0 /target:rebuild


XBuild Engine Version 12.0
Mono, Version 3.4.0.0
Copyright (C) 2005-2013 Various Mono authors

Build started 03/04/2014 15:59:50.
__________________________________________________
Project "/opt/intranet/applications/SMTPFilter/SMTPFilter.sln" (rebuild target(s)):
        Target ValidateSolutionConfiguration:
                Building solution configuration "Debug|Any CPU".
        Target Rebuild:
[...]
                        Target GenerateSatelliteAssemblies:
                        No input files were specified for target GenerateSatelliteAssemblies, skipping.
                        Target CoreCompile:
/usr/lib/mono/2.0/Microsoft.CSharp.targets: error : Error executing task Csc: Argument cannot be null.
Parameter name: pathToTool
                        Task "Csc" execution -- FAILED
                        Done building target "CoreCompile" in project "/opt/intranet/applications/SMTPFilter/SMTPFilter.csproj".-- FAILED
                Done building project "/opt/intranet/applications/SMTPFilter/SMTPFilter.csproj".-- FAILED
        Task "MSBuild" execution -- FAILED
        Done building target "Rebuild" in project "/opt/intranet/applications/SMTPFilter/SMTPFilter.sln".-- FAILED
Done building project "/opt/intranet/applications/SMTPFilter/SMTPFilter.sln".-- FAILED

Build FAILED.
Errors:

/opt/intranet/applications/SMTPFilter/SMTPFilter.sln (rebuild) ->
(Rebuild target) ->
/opt/intranet/applications/SMTPFilter/SMTPFilter.csproj (Rebuild) ->
/usr/lib/mono/2.0/Microsoft.CSharp.targets (CoreCompile target) ->

        /usr/lib/mono/2.0/Microsoft.CSharp.targets: error : Error executing task Csc: Argument cannot be null.
Parameter name: pathToTool

         0 Warning(s)
         1 Error(s)

Time Elapsed 00:00:00.4959140


Regards,

Victor d'Agostino
Comment 1 Mikayla Hutchinson [MSFT] 2014-04-03 16:06:55 UTC
Fixed: https://github.com/mono/mono/commit/2086958399f30a8b7a997203c87d92dab2b507ce