This is why microsoft loves open-source. Free code from others that they can point to while trying to sell their licenses.
This actually lessens the vendor lock-in problem and also means less of a risk of Microsoft pulling out of providing security updates for key components.
So far as I can observe, C#, F# and .NET Core as a platform for web development have benefited from the OSS-ification in the form of more dynamic and transparent progress/evolution.
Disclaimer: I'm more of a Python/Django guy.
And Microsoft isn't involved. The .NET Foundation holds the copyright.