#[SOLVED (sort of)]I am trying to run dotnet using the dotnet installation script
84 messages · Page 1 of 1 (latest)
dotnet doesn't support for Termux environment, that's also the reason why Powershell package doesn't exist in the repo. the only way to use dotnet is to run it inside trapped proot/chroot environment
you can use proot-distro to setup proot environment
https://github.com/termux/proot-distro
so there's really no way to get it to run outside a proot
so you're saying it's not as straight forward even inside a proot
There is no (open source) .NET runtime with Android support.
Xamarin exists, but its runtime doesn't have source code available for porting to Termux.
no, i mean it would work inside proot environment but it wouldn't outside proot environment
don't xamarin and .NET MAUI compile to Kotlin or something
oh okay
i misunderstood and it sounded like you need to bend the environment of a proot to make it work
I don't think so.
In either case without source code availability we can't port them to work in Termux.
i remember deploying a maui app to android and the apk was just kotlin stuff
didn't know it could be deeper than that
.NET support is one of the longest running issues in the project.
https://github.com/termux/termux-packages/issues/516
Without concessions from Microsoft, or a third party Android .NET runtime popping up, it's not likely to ever happen.
This project is a very promising initiative to develop in .Net with real cross platform support. Website: https://www.microsoft.com/net/core (already supports multiple Linux distros) And the cli on...
Mono doesn't support Android.
And Xamarin/MAUI are not open source.
it's a miracle if Microsoft actually open-source .NET
So we're shit out of luck.
didn't they open source it already
Sorta
i'll admit anything in dotnet is too big for me to audit myself to see if not all of it is open but
it exists 🤷♂️
just kinda assumed on that one, but apparently there is a repo for it, so maybe?
https://github.com/dotnet/maui
yea
i remember looking for dotnet on github and i first looked at microsoft's github account
took me a while to realize powershell and dotnet have separate accounts
oh also
Microsoft might only open-source some of the parts from that above
let me check the PRs on the package repo, I think MAUI was brought up before and there's still some hurdles
i doubt anything of the sorts would be possible if it weren't open
it's a lot of commits behind and some forward
not looking very promising but it's open enough for people to try making it a reality so 
Is MAUI just a framework, or also a runtime?
I'm not that well versed in the .NET terminology
Also, Android while using the Linux Kernel, is not Linux.
framework
it compiles to
on Windows it's WinUI
on MacOS it compiles to Mac Catalyst but .NET exists on Mac so you still need a runtime
on android it seemed to install an app and a child app which you as a user could access
Found the stack diagram.
The blocker here is .NET for Android.
and it seemed to be kotlin
damn
i guess there's more to it than just compiling to kotlin
It doesn't compile to Kotlin, or JVM-IL at all.
It compiles to .NET intermediate language
hmmmm
Uses the standard .NET JIT compiler to convert IL to machine code at runtime
then they got the .net runtime inside a kotlin app since it's still android at the end of the day
ah
Well yes, at the end of the day it still needs to interface with Android's JVM.
[SOLVED (sort of)]I am trying to run dotnet using the dotnet installation script
mono does support Android and it is even packaged on Termux
and I think some frameworks use mono as the basis to make their C# code run as an Android app
like Unity game engine I believe
Okay wait...
What exactly in still blocking .NET on Termux then?
Mono is different from the .NET that microsoft is making
Wasn't Mono acquired by Microsoft?
I don't know, but they are still two different codebases
Acquired by Novell (sirens should be going off at this point) and eventually transferred to Xamarin, a Microsoft subsidiary.
also Mono is like based on the older .NET Framework
.NET Framework used to be a windows only thing and mono felt like a cross platform version of it
but then microsoft made .NET Core that became cross platform
eventually since .NET 5 the Core in the name was dropped, since latest .NET Framework was version 4 no more name confusion is possible
Mono supports up to .NET 4.8 by the looks of it.
So that might be an issue
yep that's the latest .NET Framework version
after that is Microsoft's rewrite which is what we use today
wait so mono is only .net framework
i imagined that mono being bought by microsoft and .net core being a thing made it like an alternative to the cross-platform sdk