3 Netcore support in mono consists of two parts:
4 * The runtime compiled in netcore mode
5 * An implementation of System.Private.CoreLib
9 Everything below should be executed with the current dir set to 'netcore'.
14 To rebuild the runtime, do
17 To rebuild System.Private.CoreLib, do
20 These two targets will copy the results into shared/Microsoft.NETCore.App/<version>.
22 # Running with netcore
24 ## Running through the 'dotnet' tool.
26 Run ```dotnet publish -c Release -r osx-x64``` to create a published version of the app.
28 ```mono/mini/.libs/libmonosgen-2.0.dylib```
30 ```bin/netcoreapp3.0/osx-x64/publish/libcoreclr.dylib```
32 ```netcore/System.Private.CoreLib/bin/x86/System.Private.CoreLib.{dll,pdb}```
34 ```bin/netcoreapp3.0/osx-x64/publish```
36 ## Running with the mono runtime executable
38 DYLD_LIBRARY_PATH=shared/Microsoft.NETCore.App/<dotnet version> MONO_PATH=shared/Microsoft.NETCore.App/<dotnet version> ../mono/mini/mono-sgen --assembly-loader=strict sample/HelloWorld/bin/netcoreapp3.0/HelloWorld.dll
40 ## How to set up managed debugging
42 Change the DebugType to full in your .csproj
43 <DebugType>full</DebugType>
44 Enable debugger agent using the environment variable MONO_ENV_OPTIONS
45 export MONO_ENV_OPTIONS="--debug --debugger-agent=transport=dt_socket,address=127.0.0.1:1235,server=y,suspend=y"
47 ./dotnet --fx-version "5.0.0-alpha1.19409.2" sample/HelloWorld/bin/netcoreapp3.0/HelloWorld.dll