Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

How to run Asp.net core RTM on mono with Arm based Linux #5088

@techcap

Description

@techcap

Now Asp.net core rtm doesn't work on mono.
There's workaround which I tested.

  1. MVC dynamic compilation does not work on mono. Now I used Publish option using right click over project item in solution explorer, Visual Studio.
  2. Copy 1st step's publish files to linux machine.
  3. System.Runtime.InteropServices.RuntimeInformation.dll is only for windows machine, if I compiled it on windows machine. So I have to replace the file to packages\System.Runtime.InteropServices.RuntimeInformation.4.0.0\runtimes\unix\lib\netstandard1.1\System.Runtime.InteropServices.RuntimeInformation.dll.
  4. System.Native is required. Kestrel server only use one function, GetUnixName.
    @Tragetaschen made libSystem.Native project. Running on Linux/ARM with Mono finally stopped working with the RTM/preview2 bits dotnet/aspnetcore#1610
    Below is compile and installation script.
git clone https://github.com/Tragetaschen/libSystem.Native
cd libSystem.Native/src
cc -c -o libSystem.Native.o GetUnixName.c -fpic
cc -shared libSystem.Native.o -o libSystem.Native.so
/usr/bin/install -c -m 644 libSystem.Native.so /usr/local/lib
echo "/usr/local/lib" | tee /etc/ld.so.conf.d/local.conf 
sudo ldconfig -v
  1. Run with mono

    mono TestWeb.exe

When will Asp.net core support arm platform or mono?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions