MS never supplied the tool. There is an open source vs extension
https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
MS never supplied the tool. There is an open source vs extension
https://marketplace.visualstudio.com/items?itemName=SharpDevelopTeam.CodeConverter
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++))
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.
Visual Studio 2022 no longer includes a built-in VB.Net to C# conversion tool.
Here are some reliable options:
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.
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