Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active September 12, 2018 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/bd6f63601a013514cf17c59cd06ba7b4 to your computer and use it in GitHub Desktop.
Save guitarrapc/bd6f63601a013514cf17c59cd06ba7b4 to your computer and use it in GitHub Desktop.
Microsoft Dotnet Conf 2018 / Build Mono in Visual Studio
  1. [required] Make sure you have installed latest Visual Studio 2017 (15.8.4 and higher)
  2. [required] Make sure your Visual Studio 2017 Language Pack is English. If no, install it from Visual Studio Installer.
  3. [required] Install MSBuild
  4. [required] Install Visual C++ 2017 Redistributable package
  5. [required] Desktop VS++ 2015.3 v14.00(v140) Tool set
  6. [not sure required] Install .NET Framework 4.7.2 SDK / Targeting Pack
  7. [not sure required] Install Windows 10 SDK (10.0.1713.4)
  8. [not sure required] Install VC++2017 15.8 v14.15 Latest v141 Tool
git clone https://github.com/mono/mono.git
cd mono
git submodule update --init --recursive
set PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin;%PATH%
msbuild msvc/mono.sln /p:MONO_TARGET_GC=sgen
msbuild bcl.sln /p:Platform="net_4_x" /restore
@guitarrapc
Copy link
Author

$ msbuild msvc/mono.sln /p:MONO_TARGET_GC=sgen

image

$ msbuild bcl.sln /p:Platform="net_4_x" /restore

image

Build Packages will be compiled to mono\msvc\build\sgen\x64\bin\Debug

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment