1.5 KiB
Code Converter
Convert code from C# to VB.NET and vice versa using Roslyn
Using the code converter
Visual Studio Extension (recommended): https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter
Online snippet converter: https://roslyncodeconverter.azurewebsites.net
Developing against the Code Converter library (NuGet)
NuGet pacakge: 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.
History
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.