Live data from Hacker News

Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

news.ycombinator.com

1–10 of 89 posts

Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#1
Microsoft's .NET is an open-source platform for building desktop apps and mobile apps (and more) using C#, F# and Visual Basic. Does this sound too good to be true?

For example, Electron is often discussed on HN (liked and disliked), but .NET is far less discussed as a cross-platform option.

Similarly, Xamarin is a platform built on top of .NET for building Android and iOS apps (using one codebase). This sounds like the holy grail of mobile development. But what is the reality?

I did a search on HN and found no stories about Xamarin from the last year. The top search results are HN stories from 5-10 years ago. This makes me wonder how popular .NET is for cross-platform desktop or mobile apps.

What has been your experience using .NET writing cross-platform desktop and mobile apps?

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#3
You might want to consider how much Microsoft uses it in their own products before choosing to use it. This article describes the situation pretty well:

"not even Microsoft, literally the people who own Xamarin, use it in any of their big products like Teams, Outlook, and the list goes on. Instead, they reach for native development or Electron. So we can just tie a bow in it and have a minute's silence for another end-of-life cross-platform software development framework."

"None of These Problems Are Solved With MAUI. The poor developer experience, how apps look, XAML being a pain, and these other core issues won’t be resolved by MAUI. So, if you already know Xamarin Forms, and you’re waiting for MAUI to land, but you’re not 100% thrilled with the experience so far, then it’s a great opportunity to think about learning something else."

Source: https://betterprogramming.pub/xamarin-forms-is-dying-and-mau...

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#4
We are on top of .NET 6 today. Been using a .NET stack for over half a decade in production.

We still just do the web app thing. For our business & customers, this is the lowest-friction way to deliver the application experience. So, we are effectively cross platform on both our client and server. We only have to maintain one code pile to make it all happen.

If you can figure out a way to make the web work for you, try it. Having an app icon on someone's phone is such a ridiculously wasteful thing to chase unless you can properly justify it.

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#5
I love C#.NET + Xamarin + Visual Studio.

  * Easy to get started
  * Builds for iOS on a remote Mac but runs in local emulator
  * Performant!
  * Simple to write device specific code
  * Power of .NET
  * Supports more than Android and iOS, like desktop UWP

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#6

You might want to consider how much Microsoft uses it in their own products before choosing to use it. This article describes the situation pretty well: "not even Microsoft, literally the people who own Xamarin, use it in any of their big products like Teams, Outlook, and the list goes on. Instead, they reach for native development or Electron. So we can just tie a bow in it and have a minute's silence for another en…

In the case of Teams, I think they regret choosing Electron.

A Xamarin app doesn't need to use XML or Xamarin Forms which provides UI components. A totally custom interface/game can be developed with Xamarin + SkiaSharp which provides drawing primitives.

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#8
post #2

Xamarin is apparently merged into .net 6as .Net.maui. i only know 1 application that is multiplatform and relative popular: keepass.

Keepass has a big ol' development ceased message on its homepage, and referring visitors too KeepassXC (Qt based).

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#9
We built Rec Room (https://recroom.com/) using Unity across several platforms:

* iOS

* Android

* PC

* PlayStation

* Xbox

* VR

Rec Room is a "game for building games". I'd say Unity has worked pretty well. Given that the product is a game this success with single-lang cross platform may be more common than other industries. Still, though, I'm surprised that there isn't a similar "engine" for non-game cross platform development like Unity or Unreal that folks are generally happy with.

(Shameless plug, we are hiring if folks are interested https://recroom.com/careers)

Re: Ask HN: Are you using .NET to write cross-platform desktop or mobile apps?

#10
post #8
post #2

Xamarin is apparently merged into .net 6as .Net.maui. i only know 1 application that is multiplatform and relative popular: keepass.

Keepass has a big ol' development ceased message on its homepage, and referring visitors too KeepassXC (Qt based).

Which wwbsite do you visit? There is no such message.
Post reply on HN