Marek Safar cf650fb3fb Update 4.5 bcl solution files vor 13 Jahren
..
.gitattributes b293948fb7 EOL handling vor 15 Jahren
README 81ad8b58bb Document the Visual Studio csproj and .sln generation, tidy up/fixes. Getting ready for a pull request. vor 13 Jahren
System.Xml.pre 0dbf0040d6 Update to support the compiler buidl vor 16 Jahren
TODO 38253abf8c Add solution files vor 15 Jahren
csproj.tmpl 9c01a8335f FIX: doubling up on curly braces around GUIDs in the solution files vor 13 Jahren
genproj.cs 96d058749d Update csproj generator to work on mac vor 13 Jahren
genproj.csproj fc9380df56 Initial work to make the mono csproj files mroe readily compilable in Visual Studio. This is work finally following up on my offer in http://lists.ximian.com/pipermail/mono-devel-list/2012-May/038908.html. vor 13 Jahren
mcs.pre 0dbf0040d6 Update to support the compiler buidl vor 16 Jahren
monowrap.cs 8e186eaaef rename net_2_1 to moonlight vor 16 Jahren
net_4_5.sln cf650fb3fb Update 4.5 bcl solution files vor 13 Jahren
order.xml cf650fb3fb Update 4.5 bcl solution files vor 13 Jahren
prepare.cs 2602bea504 Fix compiler build, make sure generated solutions include the actual HintPath so VS does not turn lib/basic/System.dll into GAC system.dll, so pass the entire relative path vor 16 Jahren

README

README Last updated: 2013-01-09

Visual Studio Build Setup for Mono's Managed Code
=================================================

The scripts in this directory are used to create the various .csproj
for each one of the modules in Mono. To avoid accidentally making
changes on the Makefile system that is not reflected on the csproj
system, the .csproj files are generated from the actual Makefile
settings.

This requires a couple of steps:

* Extract the order, compiler and compilation flags for all
managed code in Mono on Linux by using the existing Makefile
system.

* Generate csproj files from the previous step

The idea is to ensure that we do not miss any compilation flag,
define, resource, reference, icon or any other element that might be
necessary to build the Mono class libraries.

* Extracting the Compilation Metadata

The first step is to extract the compilation metadata from the
existing Makefiles. This is done in stages, first a fully
working Mono compilation setup is required, and second the data
is extracted.

The extraction is done like this, from the toplevel Mono
directory run:

make update-csproj

With this input, it is possible to generate an XML file, to do
this do:

make package-inputs

This will generate order.xml, this contains the ordered list in
which directories must be compiled as well as the command line
options used to build it.

* Generate .csproj and .sln files

Run the genproj.exe executable in this directory.

cd msvc/scripts/
/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe genproj.csproj
./genproj.exe

One output of genproj is the solutions for the successive profiles,
from net_2_0.sln to from net_4.5.sln

The command
./genproj.exe -h
lists a couple of options, notably to limit the scope of
the output solutions for each profiles to System*.dll assemblies
and dependencies.

* Compiling from Visual Studio

Before you try to compile from Visual Studio, you are *strongly*
advised to set the maximum number of parallel project builds
to 1 (Tools -> Options -> Projects and Solutions -> Build and Run)
Due to the iterative building process for some of Mono's
assemblies, there can be clashes writing to /obj/Debug for
some projects

* KNOWN ISSUES

* Many assemblies still fail to compile, due to missing project
references output by genproj, or other issues yet to determine

* The first build of a solution may have a large number of
failing compilations, more than subsequent solution Builds

* The .NET 2.0 profile assemblies end up targetting the
v4.0 runtime, even when requesting 2.0 in the csproj file
(http://social.msdn.microsoft.com/Forums/en-US/msbuild/
thread/6c9cd0e1-7fb8-480a-b006-f034b5926e03)