#[SOLVED (sort of)]I am trying to run dotnet using the dotnet installation script

84 messages · Page 1 of 1 (latest)

surreal sun
#

The script executed successfully and it wrote some things to my Termux's home folder, but it somehow can't find the executable regardless. Not sure if this is a Termux problem or a me problem or a binary problem. I have attached a screenshot of all of the messages i sent in a separate server asking for potential fixes.

soft swan
surreal sun
#

so there's really no way to get it to run outside a proot

soft swan
#

yep

#

except you're patching it until it does work for Termux

surreal sun
#

so you're saying it's not as straight forward even inside a proot

heavy sinew
#

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.

soft swan
surreal sun
#

don't xamarin and .NET MAUI compile to Kotlin or something

surreal sun
#

i misunderstood and it sounded like you need to bend the environment of a proot to make it work

heavy sinew
surreal sun
#

i'll mark this as solved

#

and uhhh

surreal sun
#

didn't know it could be deeper than that

heavy sinew
#

.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.

GitHub

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.

soft swan
#

it's a miracle if Microsoft actually open-source .NET

heavy sinew
#

So we're shit out of luck.

surreal sun
#

didn't they open source it already

heavy sinew
#

Sorta

surreal sun
#

also

#

are you sure maui is not open source

heavy sinew
#

The Mono runtime, and .NET Core are open source.

#

But neither supports Android

surreal sun
#

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 🤷‍♂️

heavy sinew
surreal sun
#

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

soft swan
#

Microsoft might only open-source some of the parts from that above

surreal sun
#

i remember seeing a .NET MAUI runtime for *bsd long ago

#

or linux

#

idk

heavy sinew
#

let me check the PRs on the package repo, I think MAUI was brought up before and there's still some hurdles

surreal sun
#

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 shrug

heavy sinew
#

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.

surreal sun
#

framework

heavy sinew
#

That'd be the issue then.

#

We still need a runtime.

surreal sun
#

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

heavy sinew
#

Found the stack diagram.
The blocker here is .NET for Android.

surreal sun
#

and it seemed to be kotlin

#

damn

#

i guess there's more to it than just compiling to kotlin

heavy sinew
#

It doesn't compile to Kotlin, or JVM-IL at all.

#

It compiles to .NET intermediate language

surreal sun
#

hmmmm

heavy sinew
#

Uses the standard .NET JIT compiler to convert IL to machine code at runtime

surreal sun
#

then they got the .net runtime inside a kotlin app since it's still android at the end of the day

#

ah

heavy sinew
surreal sun
#

[SOLVED (sort of)]I am trying to run dotnet using the dotnet installation script

dense badge
#

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

heavy sinew
dense badge
#

Mono is different from the .NET that microsoft is making

heavy sinew
#

Wasn't Mono acquired by Microsoft?

dense badge
#

I don't know, but they are still two different codebases

heavy sinew
#

Acquired by Novell (sirens should be going off at this point) and eventually transferred to Xamarin, a Microsoft subsidiary.

dense badge
#

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

heavy sinew
#

Mono supports up to .NET 4.8 by the looks of it.
So that might be an issue

dense badge
#

yep that's the latest .NET Framework version

#

after that is Microsoft's rewrite which is what we use today

surreal sun
#

i imagined that mono being bought by microsoft and .net core being a thing made it like an alternative to the cross-platform sdk

dense badge
#

yes

#

.NET framework is windows only and Mono was our open source cross platform alternative