A better example would be Nokia.
I would have to disagree. .NET has become the backbone of the MSFT developer experience and has gone far beyond being just an alternative to java. It's heavily used in Azure, SQL Server, Web Applications, Desktop, Mobile etc.
In my industry, Microsoft stacks are extremely common. The talent pool for C# in this area is tremendous, which has absolutely gained the company much synergy in the form of OS and MSSQL licensing. So the development of .Net in my opinion has made the company much more sticky.
I can't help but believe they're making a mistake (even though I want it!) in pushing .Net to open source.
If Microsoft can't retain developer mindshare, they are sunk.
Azure is a huge step forward in bringing many of these traditionally in house technologies like SQL Server, SSIS, SSAS, Reporting Services, and .NET Web Apps affordably into the cloud as well as newer technologies that fit comfortably into companies' existing infrastructure (Data Factory, Azure Functions, HDInsight etc.)
They are grabbing a huge amount of developer mindshare at the enterprise level, and by opening up their tools are allowing the younger crowd a free alternative to going with OSS.
I'm definitely not a MSFT zealot. I have been a "linux guy" since I was 14 yrs old, but after working almost exclusively with the MSFT stack for the last 2.5 yrs I am very impressed with their offerings and the level of integration and cohesiveness around those offerings.