I’m the administrator of kbin.life, a general purpose/tech orientated kbin instance.

  • 2 Posts
  • 1.33K Comments
Joined 2 years ago
cake
Cake day: June 29th, 2023

help-circle



  • Can Linux run programs that rely on frameworks like .NET or other Windows-specific libraries?

    So this one I thought I’d answer because I’ve done development in both NET framework and NET core and how it works is different for each (although things will usually work one way or another).

    For .NET framework applications, if the program is compiled for windows (the .exe) you can usually run it with mono (you generally don’t need wine, but there’s some caveats that mean sometimes you should use wine). This will include programs with GUIs. If the NET framework app calls other windows programs it is best to run it via wine, you will need to install the net framework within wine, but there’s a winetricks command for that. There are a few things that are generally niche things that do not work in linux net framework’s mono though. By niche the one I can think of, is serial port events. Very annoyingly they all exist, so the program will run but the events will never trigger an action in the programs. Very annoying, but luckily very rare/niche stuff.

    For .NET core, you can build directly to linux targets, and if the project you are working on does target NET core, then you can run the binary natively (note: you usually cannot build applications using forms to linux native binaries, for these you should run the windows exe with wine). You can also run the .exe files for this with wine and I’ve rarely had a problem with it.

    Note that if you develop .NET applications, you won’t be able to build anything that uses the standard forms GUI under linux. There are other UI frameworks out there you can use that are multi platform. For this reason, for the projects that do use windows forms, I have a VM with windows on that I boot up for this reason.

    In short, if you’re just running windows binaries, you will be generally fine with mono for framework and wine for core. For development “it’s complicated”.












  • All hypothetical of course. Not convinced things will go that far without some more clear indicators.

    The root servers are already spread over the globe. Enough of them are operated by non US orgs too to handle things initially, I suspect that the localised anycast servers located outside the US for those USA based operators would probably go on serving.

    It’d be trivial to replace them anyway, and frankly we traffic would be much lower anyway since a lot of the Internet is run by us based organisations.

    For domain registration on tlds not run by the us, they should continue to operate fine.