I have to convert a C# project to VB.NET and VBA. It’s a console app that uses the Microsoft Office API (Microsoft.Office.Interop.*).
My two questions:
- C# -> VB.NET: .NET Reflector is a good tool for this, except that it doesn’t preserve source code comments. Is there a way to do this?
- .NET -> VBA: is there an automated tool to do this conversion? It would need to be a client side tool (because the code is proprietary).
The best conversion seems to be done by SharpDevelop. Open your project and from the tools menu and select convert code to. Since it has all of your c# source code it does a very good job.