Как собрать roslyn

Разработка на C# под linux
 
Building: CSharpSyntaxGenerator (Debug)

Build started 1/22/2016 2:00:51 AM.
__________________________________________________
Project "/var/calculate/remote/distfiles/egit-src/roslyn.git/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj" (Build 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 /usr/lib64/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/CSharpSyntaxGenerator.exe AbstractFileWriter.cs Model/AbstractNode.cs Model/Comment.cs Model/Field.cs Model/Kind.cs Model/Node.cs Model/PredefinedNode.cs Model/Tree.cs Model/TreeType.cs Program.cs SignatureWriter.cs SourceWriter.cs TestWriter.cs /target:exe /define:"DEBUG;TRACE" /langversion:6 /nostdlib /platform:AnyCPU /reference:/usr/lib64/mono/4.0/System.dll /reference:/usr/lib64/mono/4.0/System.Xml.dll /reference:/usr/lib64/mono/4.0/System.Core.dll /reference:/usr/lib64/mono/4.0/mscorlib.dll /warn:4
Program.cs(63,57): error CS0117: `System.Xml.XmlTextReader' does not contain a definition for `DtdProcessing'
		/usr/lib64/mono/4.0/System.Xml.dll (Location of the symbol related to previous error)
	Task "Csc" execution -- FAILED
	Done building target "CoreCompile" in project "/var/calculate/remote/distfiles/egit-src/roslyn.git/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj".-- FAILED
	
Done building project "/var/calculate/remote/distfiles/egit-src/roslyn.git/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj".-- FAILED

Build FAILED.
Errors:

/var/calculate/remote/distfiles/egit-src/roslyn.git/src/Tools/Source/CompilerGeneratorTools/Source/CSharpSyntaxGenerator/CSharpSyntaxGenerator.csproj (Build) ->
/usr/lib64/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) ->

	Program.cs(63,57): error CS0117: `System.Xml.XmlTextReader' does not contain a definition for `DtdProcessing'

	 0 Warning(s)
	 1 Error(s)

Time Elapsed 00:00:01.0376540

---------------------- Done ----------------------

Build: 1 error, 0 warnings
Надо собрать более свежую версию mono (версии 4.2.2.10/7b87787 недостаточно, последняя - 4.2.2.30 но я не уверен, что будет работать и в ней):
https://github.com/mono/mono/blob/b7a308f660de8174b64697a422abfc7315d07b8c/mcs/class/System.XML/System.Xml.dll.sources#L289
https://github.com/mono/referencesource/blob/mono/System.Xml/System/Xml/Core/XmlTextReader.cs#L344-L347
В mosa такого нет:
https://github.com/mosa/Mono-Class-Libraries/blob/master/mcs/class/System.XML/System.Xml/XmlTextReader.cs

Может попробовать опакетить отдельно System.Xml.dll ? (ну, как пробный проект)

Дело оказывается не в том, что это System.Xml.dll плохая, а в том, что для сборки используется msbuild.
Если использовать xbuild, то никаких проблем нет. Значит, дело в том, где msbuild ищет системные библиотеки...