I didn't say they rewrote everything for .NET. There is managed C++ which uses the CLR while also support native C++ code. So they could use code written in the 80's with managed C++.
I seriously doubt they rewrote Visual Studio to be completely managed. That would be incredibly stupid for more than one reason.