6

I have a ASP.NET CORE MVC (.NET CORE 3.1) application running well on Kestrel in Windows, Now I'm wondering if possible to migrate it to Android via Xamarin?

The purpose of this move is the lower cost of Android device.

And I noticed: Run ASP.NET Core 3.0 apps with MonoVM but seems no details?

2
  • Do you want to implement the functionality of the web application in an Android app, or do you want to have an Android app be the hosting application for the ASP.NET application? Because if the last one is the case: why?? Commented May 25, 2020 at 7:59
  • 4
    @rickvdbosch I don't know the difference of your options, could you clarify more? My situation is, before, I had a Windows device that hosting the ASP.NET CORE MVC well, but the device is expensive, so I have to switch to a cheap Android device. Commented May 25, 2020 at 9:22

1 Answer 1

1

No, Not yet (Jan 2021).

Xamarin, NetFramework, Net5, NetCore3 all support NetStandard. AspNetCore is based on NetCore, not NetStandard. If AspNetCore was a NetStandard library, it would support it, but AspNetCore uses other libraries in NetCore which do not exist on Xamarin.

By the way, if you need just a simple web server running on android like Kestrel, you can use EmdedIO. Indeed it doesn't support MVC, MVP, and MVVM, so you can not run AspNetCore app on Xamarin: https://github.com/unosquare/embedio

Sign up to request clarification or add additional context in comments.

1 Comment

by check with https://www.nuget.org/packages?q=Microsoft.AspNetCore, as limited checking by me for now, all related packages are marked with .NETStandard 2.0, so what exactly break the ASP.NET CORE using on Xamarin?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.