Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Roslyn
  3. Code Converter

Code Converter

MITC#v10.0.1

Convert code between C# and VB.NET using Roslyn, available as a Visual Studio extension, online tool, CLI, and library.

Visit WebsiteGitHubGitHub
902 stars238 forks0 contributors

What is Code Converter?

Code Converter is a free, open-source tool that translates code between C# and Visual Basic .NET (VB.NET) using Microsoft's Roslyn compiler platform. It solves the problem of migrating legacy VB.NET projects to C# or incorporating C# snippets into VB.NET codebases by providing accurate, context-aware conversions. The tool is available in multiple formats, including a Visual Studio extension, online converter, command-line interface, and NuGet library.

Target Audience

.NET developers maintaining or migrating projects between C# and VB.NET, particularly those dealing with legacy VB.NET codebases or seeking to learn one language from the other.

Value Proposition

Developers choose Code Converter for its high accuracy through full project context analysis with Roslyn, the safety of local processing, and flexibility across multiple integration options—all completely free and open source.

Overview

Convert code from C# to VB.NET and vice versa using Roslyn

Use Cases

Best For

  • Migrating entire VB.NET projects to C# as VB.NET support declines
  • Converting C# code snippets from Stack Overflow for use in VB.NET projects
  • Learning C# syntax when coming from a VB.NET background (or vice versa)
  • Integrating code conversion into custom tools via the NuGet library
  • Converting small selections or individual files between C# and VB.NET quickly
  • Ensuring code conversions are accurate by leveraging full project context

Not Ideal For

  • Projects requiring high-accuracy C# to VB.NET conversions, as the tool admits lower quality in that direction.
  • Environments without Visual Studio 2026 18.0+ or .NET Core SDK 10.0, since some formats depend on these specific versions.
  • Teams needing a cloud-based or server-side conversion API, as all processing is local and requires installation.
  • Developers working with languages outside C# and VB.NET, as the tool is specialized only for these two .NET languages.

Pros & Cons

Pros

Roslyn-Powered Accuracy

Uses Microsoft's Roslyn compiler for full project context analysis, ensuring conversions are semantically accurate and reliable, especially for VB.NET to C# migrations.

Multiple Deployment Formats

Available as a Visual Studio extension, online snippet converter, command-line tool, and NuGet library, offering flexibility for different development workflows.

Local Code Processing

All conversion runs entirely on the user's machine, keeping code secure and private without sending it to external servers, as emphasized in the README.

Active VB to C# Focus

Continuously improved with a focus on VB.NET to C# conversion quality, addressing the decline in VB.NET support and based on user feedback.

Cons

Asymmetric Conversion Quality

The README explicitly states that VB to C# conversion is much higher quality than C# to VB, making it less reliable for reverse conversions or snippet incorporation.

Tooling Dependencies

The command-line version requires Visual Studio 2026 18.0+ to be installed, which can be a barrier for environments without VS or with older versions.

Limited to .NET Ecosystem

Only converts between C# and VB.NET, lacking support for other programming languages or cross-platform code translation, which restricts its use cases.

Frequently Asked Questions

Quick Stats

Stars902
Forks238
Contributors0
Open Issues95
Last commit10 days ago
CreatedSince 2017

Tags

#converter#csharp#vb-net#cli-tool#visual-studio#dotnet#code-conversion#roslyn#migration-tool#c-sharp#visual-studio-extension

Built With

R
Roslyn
v
visual-studio
N
Node.js
.
.NET Core SDK

Links & Resources

Website

Included in

Roslyn734
Auto-fetched 22 hours ago

Related Projects

Dotnet ScriptDotnet Script

Run C# scripts from the .NET CLI.

Stars2,999
Forks179
Last commit4 days ago
RoslynQuoterRoslynQuoter

Roslyn tool that for a given C# program shows syntax tree API calls to construct its syntax tree

Stars1,088
Forks124
Last commit11 months ago
FlubuCoreFlubuCore

A cross platform build and deployment automation system for building projects and executing deployment scripts using C# code.

Stars932
Forks100
Last commit1 month ago
roslyn-linq-rewriteroslyn-linq-rewrite

Compiles C# code by first rewriting the syntax trees of LINQ expressions using plain procedural code, minimizing allocations and dynamic dispatch.

Stars714
Forks28
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub