Convert VB.Net Project to C#

Jeffrey Gaines 40 Reputation points
2025-08-31T09:31:09.9366667+00:00

I have just installed Visual Studio 2022 Community Edition.

I was planning to convert an old VB.Net project to C#. I started by updating it to .NET Framework 4.8 and made sure it compiled and worked.

When I tried to convert it to C# the option wasn't available and I had to download a third party tool and install it in VS, I can't find it now I have no idea where to look.

Has the built in converter been removed?

This tool frankly hasn't made a very good job of it, are there any recommendations please?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

Answer accepted by question author
  1. Bruce (SqlWork.com) 81,976 Reputation points Volunteer Moderator
    2025-09-01T06:17:49.5266667+00:00

    MS never supplied the tool. There is an open source vs extension

    https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Castorix31 91,416 Reputation points
    2025-08-31T09:44:17.6333333+00:00

    Now it is easy to use AI like ChatGPT to do code conversions

    (I usually copy/paste some parts of code and ask for translation, it generally works fine with VB.NET/C#/C++))

    0 comments No comments

  2. Starry Night 615 Reputation points
    2025-09-01T06:46:47.6333333+00:00

    Converting code from VB.NET to C# can be done using different tools and methods. One of the most efficient ways is to use a code converter that leverages the Roslyn compiler platform.

    The Code Converter extension for Visual Studio is a powerful tool that allows you to convert VB.NET code to C# and vice versa,which is developed by the SharpDevelop Team and is available for free on the Visual Studio Marketplace. Here are the steps to use it:

    1.    Install the Extension: Go to the Visual Studio Marketplace and search for Code Converter (VB - C#). Click on the Download button and follow the instructions to install the extension.

    2.    Convert Code: Open your VB.NET project or file in Visual Studio. The right-click on the project or file in the Solution Explorer. Select Convert to C# from the context menu. The converter will process the code and display the conversion progress in the Output window.

    0 comments No comments

  3. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,200 Reputation points Microsoft External Staff
    2025-09-01T10:50:19.9566667+00:00

    Visual Studio 2022 no longer includes a built-in VB.Net to C# conversion tool.

    Here are some reliable options:

    1. Telerik Code Converter can used ,Copy your VB.Net code and paste and get the converted C# code.
    2. ICSharpCode Code Converter can be used, You can install it as a Visual Studio extension.

     After installation, you can right-click your VB files in Solution Explorer and Convert to C#.

    3.SharpDevelop this supports project-level conversion. If Telerik/ICSharpCode tools don’t work, you can try this.


  4. Karen Payne MVP 35,591 Reputation points Volunteer Moderator
    2025-09-03T16:29:55.4833333+00:00

    Check out the following. I haven't used it for some time, but I remember it did a great conversion.

    https://www.tangiblesoftwaresolutions.com/product-details/vb-to-csharp-converter.html

    AA1

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.