ASP.NET is open source, the .NET Core runtime is Open Source, the standard .NET Core library is open source, the C # compiler (roslyn) is Open Source, the Visual Studio code is Open Source. ASP.NET and Roslyn are under Apache License 2.0, the others under MIT.
They all work under Linux. If you do not trust the Microsoft distribution, go ahead and build it yourself.
I do not know MariaDB, but you can get official MySQL connectors for .NET.
It is possible to host ASP.NET Core on Linux with Nginx and to host ASP.NET Core on Linux with Apache.
the Open Source version of Visual Studio Code can not debug dotnetcore projects
This feature is provided by an extension: omnisharp-vscode (Microsoft Marketplace) (MIT license). Do you have any problems with that?
Here is an alternative: use Atom (MIT license) and omnisharp-atom (MIT license). Debugging should work.
Yes, Atom comes from Github and Microsoft acquired Github, so technically it belongs to the same company … Well, there is MonoDevelop, oh, Ximian is a subsidiary of Microsoft now.
Well, let's say that for whatever reason, Microsoft decides to give up some of the components mentioned above … the latest versions already available will continue to work. Including the .NET Core for Linux.
Microsoft decides to go back to a model in which dotnet networks only work on their expensive and closed platforms (such as Windows Server and Azure).
The latest version of Mono at the time would continue to work.
And if that poses a problem, someone else will take care of the job, if only to keep them in the new versions of the operating systems and fix the bugs.
No, Microsoft will not make your code stop working.
Well, let's say you can only trust Mono and MonoDevelop (you can be as paranoid as you like) to keep working … Why not use Mongrel2 with Mono and m2net? (No .NET kernel or ASP.NET).
Finally, if you can not use any Microsoft product. I will remind you that the creators of any other free and open source software can decide to make the next source version closed. What would happen? Someone forks and continues to work on it as free and open source software. It's the same with Microsoft.
Look, MariaDB was created from MySQL because "corporate means bad", as with LibreOffice of OpenOffice. Ok, it's not exactly the same, but the solution is the same: fork.
Addendum: Oh, but Microsoft controls Github. And if they decided to remove it and that Nodoby had forked it? Get a copy today.
"Microsoft is Evil":
- Microsoft owns the author rights on the runtime API or the standard library API. So, Microsoft could sue (something similar to Oracle vs Google on Android)
- Microsoft holds a patent on the .NET runtime code and standard library. Because of this, if someone else is trying to implement the runtime, they can continue.
NO! These APIs are standard under ECMA and ISO (although standardization is lagging behind). In addition, Microsoft only restricts the use of their code for anything that is not related to .NET, see Microsoft's Promise for .NET Libraries and Runtime Components. So, no matter who is free to implement them. For example, there was a DotGNU project to implement them under GPL.