From: Zoltan Varga Date: Thu, 1 Aug 2019 20:27:40 +0000 (-0400) Subject: [netcore] Add a README. (mono/mono#15934) X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~875 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cdf202f0cfc3b6fae3f7e9d51f5e908bc3b922a;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [netcore] Add a README. (mono/mono#15934) * [netcore] Add a README. Commit migrated from https://github.com/mono/mono/commit/6f0519266903983c28d159a8e9154e02a1467cc4 --- diff --git a/src/mono/netcore/README.md b/src/mono/netcore/README.md new file mode 100644 index 0000000..d260cea --- /dev/null +++ b/src/mono/netcore/README.md @@ -0,0 +1,38 @@ +# Introduction + +Netcore support in mono consists of two parts: +* The runtime compiled in netcore mode +* An implementation of System.Private.CoreLib + +# Building + +Everything below should be executed with the current dir set to 'netcore'. + +For bootstrap, do + ./build.sh + +To rebuild the runtime, do + make runtime + +To rebuild System.Private.CoreLib, do + make bcl + +These two targets will copy the results into shared/Microsoft.NETCore.App/. + +# Running with netcore + +## Running through the 'dotnet' tool. + +Run ```dotnet publish -c Release -r osx-x64``` to create a published version of the app. +Copy +```mono/mini/.libs/libmonosgen-2.0.dylib``` +into +```bin/netcoreapp3.0/osx-x64/publish/libcoreclr.dylib``` +Copy +```netcore/System.Private.CoreLib/bin/x86/System.Private.CoreLib.{dll,pdb}``` +to +```bin/netcoreapp3.0/osx-x64/publish``` + +## Running with the mono runtime executable + +DYLD_LIBRARY_PATH=shared/Microsoft.NETCore.App/ MONO_PATH=shared/Microsoft.NETCore.App/ ../mono/mini/mono-sgen --assembly-loader=strict sample/HelloWorld/bin/netcoreapp3.0/HelloWorld.dll