Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
https://d.sb/
Mastodon: @dan@d.sb

  • 0 Posts
  • 44 Comments
Joined 2 years ago
cake
Cake day: June 14th, 2023

help-circle




  • I’m a C# developer and run .NET apps on Linux all the time. I usually work on CLI and server apps, but recently released my first Linux desktop app written in C#: https://flathub.org/apps/com.daniel15.wcc

    Even before .NET Core, I was using Mono to run C# apps on Linux. There used to be quite a few GNOME apps written in C#.

    There’s .NET and then there’s .NET Core which is a mere subset of .NET.

    Nope. The old .NET Framework has been deprecated for a long time. The latest version, 4.8.1, is not very different to 4.6 which was released 10 years ago.

    The modern versions are just called .NET, which is what .NET Core used to be, but with much more of the framework implemented in a cross-platform way. Something like 95% of the Windows-only .NET Framework has been reimplemented in a cross-platform way.

    The list of .NET stuff that will actually run on .NET Core (alone) is a barren wasteland.

    All modern .NET code is built on the cross-platform framework. Only legacy apps used the old Windows-only .NET Framework.

    If you get the free community version of Visual Studio and create a new C# project, it’ll be using the latest cross-platform framework. You can even cross-compile for Linux on a Windows system.













  • dan@upvote.autoSelfhosted@lemmy.worldDead simple document host?
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    21 days ago

    Install Nginx, add autoindex on; to the default site config, throw the files into /var/www/html or whatever default folder it uses, and delete the default index.html file. If you need to do it via Docker then use the official Nginx image https://hub.docker.com/_/nginx

    You could also just share the files via SMB. Easy to use on a PC - you could configure their computers to mount the share as a network drive on boot (e.g. R:, for recipes). Not sure about other phones but the built-in files app on my Galaxy S25 Ultra supports SMB too.




  • A lot of apps still use legacy Windows APIs that don’t understand very long paths. Those APIs have been deprecated for maybe 15 years or more, but developers are lazy. Microsoft can’t add support for long paths to the old APIs because they use a fixed buffer size (which means that only a certain amount of memory space is available for the path, and increasing it would break the apps that rely on that). They can’t totally remove the old APIs because every app that uses them would break.