> VBA which is presumably sharing a lot of that code
The VB.NET compiler is written in VB.NET, the .NET framework is C#. So, no common code.
There may have been initially. However .NET has been through multiple major versions over more than a decade so unlikely to be anything left now.