Bug 19704 - On Windows with XBuild Engine Version - Compiling .Net 4 Projects does not work
Summary: On Windows with XBuild Engine Version - Compiling .Net 4 Projects doe...
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-05-12 20:17 UTC by bleissem
Modified: 2014-07-15 18:27 UTC (History)
2 users (show)

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

compiling solution for .Net 4 does not work (114.40 KB, application/zip)
2014-05-19 03:41 UTC, bleissem
with mono 3.4 there are still compile errors (5.20 KB, application/zip)
2014-07-01 17:45 UTC, bleissem
screenshot from \lib\mono\xbuild-frameworks\.NETFramework\v4.0\Profile\Client\RedistList (60.25 KB, image/jpeg)
2014-07-07 16:56 UTC, bleissem
FrameworkList.xml from my computer (5.09 KB, text/xml)
2014-07-07 16:57 UTC, bleissem

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 for Bug 19704 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Comment 1 Mikayla Hutchinson [MSFT] 2014-05-13 20:17:32 UTC

I don't see an attachment?
Comment 3 Mikayla Hutchinson [MSFT] 2014-05-14 15:00:16 UTC
You are running xbuild.exe using the .NET runtime, which means it loads the MS .NET MSBuild engine from the MS.NET GAC.

Use bin\xbuild.bat.
Comment 5 bleissem 2014-05-19 03:41:32 UTC
Created attachment 6833 [details]
compiling solution for .Net 4 does not work

Hello everyone,

It seems that if the project (that I used in " somehow forgotten attachment" or "use xbuild.bat" ) can not compiled with .Net Framework 4 ( and .Net Framework 4 Client Profile)
However compiling this project for .Net 4.5 works with the xbuild.bat.
So for me it seems that there is a bug when compiling a project ( sln ) for .Net 4. 
Alex B.
Comment 6 Mikayla Hutchinson [MSFT] 2014-05-19 12:46:34 UTC

*** This bug has been marked as a duplicate of bug 1426 ***
Comment 7 bleissem 2014-05-20 03:42:59 UTC
Hello Mr. Hutchinson, 
for which mono version is this bug planned to be fixed ? Regards Alex B.
Comment 8 Mikayla Hutchinson [MSFT] 2014-05-20 16:51:42 UTC
Comment 9 bleissem 2014-07-01 17:45:08 UTC
Created attachment 7255 [details]
with mono 3.4 there are still compile errors

Hello Mr. Hutchinson,
well when I download a self build Mono 3.4 version from
and overwrite all the files with the files at
C:\Program Files (x86)\Mono-3.2.3
which I installed through 

I'm still getting error's when I try to compile a .Net 4 solution 
(both Client profile and "normal" .Net 4) 

The log provides the following info about XBuild:

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

So is this bug reproducible for you with the attachment ?
Comment 10 Mikayla Hutchinson [MSFT] 2014-07-06 14:27:29 UTC
Most likely the installer is missing the lib\mono\xbuild-frameworks\v4.0\Profile\Client\RedistList\FrameworkList.xml file.
Comment 11 bleissem 2014-07-07 16:56:30 UTC
Created attachment 7289 [details]
screenshot from \lib\mono\xbuild-frameworks\.NETFramework\v4.0\Profile\Client\RedistList

Here is a screenshot from my computer showing what is in the:

C:\Program Files (x86)\Mono-3.2.3\lib\mono\xbuild-frameworks\.NETFramework\v4.0\Profile\Client\RedistList


It's not the path that you actually described

(.NETFramework folder is the difference)
Comment 12 bleissem 2014-07-07 16:57:51 UTC
Created attachment 7290 [details]
FrameworkList.xml from my computer

file from my 
C:\Program Files (x86)\Mono-3.2.3\lib\mono\xbuild-frameworks\.NETFramework\v4.0\Profile\Client\RedistList
Comment 13 bleissem 2014-07-07 17:16:34 UTC
So just because I'm interested, what kind of installer tool do you use to create the Windows setup ? WiX, NSIS  ?
Comment 14 Mikayla Hutchinson [MSFT] 2014-07-07 21:22:50 UTC
My mistake, the version with .NETFramework part is correct. I'm not sure what the problem is, it would have to be debugged.

However, please be aware that xbuild on Window isn't actively maintained. I recommend using MSBuild.
Comment 16 Mikayla Hutchinson [MSFT] 2014-07-13 20:58:31 UTC
Absoluetely, though building Mono on Windows is not easy: http://www.mono-project.com/Compiling_Mono_on_Windows