Convert code from C# to VB.NET and vice versa using Roslyn
-
Visual Studio Extension (recommended): https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter
-
Online snippet converter: https://roslyncodeconverter.azurewebsites.net (less accurate due to lack of project context)
-
Extension "nightly" developer builds (potentially less stable and more effort to update): https://ci.appveyor.com/project/icsharpcode/codeconverter/branch/master
NuGet package: https://www.nuget.org/packages/ICSharpCode.CodeConverter/
Check out the ConverterController in the Web project - this is the easiest place to get started. Alternatively - with a bit of VS glue code - the CodeConversion class in the VSIX project.
It started as part of Refactoring Essentials. However, because of the way analyzers are tied to Visual Studio and Roslyn versions made it super-hard to co-evolve the code converter bits. That is why we teased the converters out and they are now a self-contained entity.