751e6001f9
Some things like DateString and setting the system time won't work, but we can always add more special cases later |
||
---|---|---|
.github | ||
.nuget | ||
ICSharpCode.CodeConverter | ||
TestData | ||
Tests | ||
Vsix | ||
Web | ||
.editorconfig | ||
.gitignore | ||
CHANGELOG.md | ||
CodeConverter.sln | ||
LICENSE | ||
README.md | ||
appveyor.yml |
README.md
Code Converter
Convert code from C# to VB.NET and vice versa using Roslyn
Visual Studio Extension
Adds context menu items to convert projects/files between VB.NET and C#.
Download from Visual Studio Marketplace
- Flexible: Convert a small selection, or a whole solution in one go, in either direction.
- Accurate: Full project context (through Roslyn) is used to get the most accurate conversion.
- Safe: Conversion runs entirely locally - your code doesn't leave your machine.
- Completely free and open source GitHub project.
- Integrated: Uses the Output window to show conversion progress / summary.
- Actively developed: User feedback helps us continuously strive for a more accurate conversion.
Contributing
Let us know what needs improving. If you want to get involved in writing the code yourself, even better! We've already had code contributions from several first time GitHub contributors, so don't be shy! See Contributing.md for more info.
Other ways to use the converter
-
Extension "nightly" developer builds (potentially less stable and more effort to update): https://ci.appveyor.com/project/icsharpcode/codeconverter/branch/master
-
Online snippet converter: https://roslyncodeconverter.azurewebsites.net (less accurate due to lack of project context)
-
NuGet package: https://www.nuget.org/packages/ICSharpCode.CodeConverter/
- Check out the CodeConversion class in the VSIX project.
- Or check out the ConverterController for a more web-focused API.
History
This was previously 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.
More screenshots