2014-08-13 10:39:27 +01:00
|
|
|
README Last updated: 2007-03-09
|
|
|
|
|
|
|
|
|
|
|
|
INTRODUCTION
|
|
|
|
|
|
|
|
This directory (msvc) serves as a central location for all
|
|
|
|
things needed to build the mono runtime using Microsoft Visual
|
|
|
|
Studio.
|
|
|
|
|
|
|
|
BUILDING
|
|
|
|
|
|
|
|
From this directory type:
|
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
msbuild.exe mono.sln /p:Configuration=Debug /p:Platform=x64
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
msbuild must be in your path, it comes with the .NET Framework.
|
|
|
|
|
|
|
|
MAINTENANCE
|
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
Source files added to the different project .target files matches project makefile structure.
|
|
|
|
NOTE, all sources added to makefiles should also be added to corresponding targets files for consistency.
|
|
|
|
Files that should not be build on Windows should be excluded using this configuration:
|
2014-08-13 10:39:27 +01:00
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
<ClCompile Include="$(MonoSourceLocation)\mono\mini\tramp-wasm.c">
|
|
|
|
<ExcludedFromBuild>$(ExcludeFromWindowsBuild)</ExcludedFromBuild>
|
|
|
|
</ClCompile>
|
2014-08-13 10:39:27 +01:00
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
and at the begning of the target file have a property set when to exclude files. This example will always
|
|
|
|
exclude the file, but could be condtional if needed:
|
2014-08-13 10:39:27 +01:00
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
<PropertyGroup>
|
|
|
|
<ExcludeFromWindowsBuild>true</ExcludeFromWindowsBuild>
|
|
|
|
</PropertyGroup>
|
2014-08-13 10:39:27 +01:00
|
|
|
|
2018-01-24 17:04:36 +00:00
|
|
|
All header files added to makefiles should be included in the different targets files for consistency.
|
|
|
|
|
|
|
|
Each target file has a corresponding filter file, files added to target files should also be added to the corresponding
|
|
|
|
filter file.
|