C# is nearly 2 decades old, and was intended to compete with Java, however it failed on the "write once run anywhere" and the "write once compile anywhere". Microsoft always had a Windows first attitude. Porting a project from Mono to .Net core was hell, and since Mono’s future was uncertain we ended up writing it in C++!
I also see a similar outcome for Swift outside of the Apple ecosystem.