Join GitHub today
New version of CSharpToVB converter
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
This application will convert C# to VB while trying to preserve comments, formatting and as many Directives as possible. It converts the True side of conditional directives, the False side is not converted. After conversion it tries to compile the code, there is a list of ignored errors that can be modified. If I file can't be compiled it can be add to an ignore list. You can convert text by typing in into the left Window, a file, project or folder from the menu's. The Tests under "TestCompile" are designed to translate the C# code in Roslyn and uses GetRoslynRootDirectory to find it. Results of folder conversion are stored in with the same directory structure with the root directory renamed to _VB. The original directories are unchanged. This version required Visual Studio 2019 and uses the new Visual Basic feature _ ' Comment to preserve most comments and formatting. Opening the resulting Visual Basic files in Visual Studio will further improve the formatting. The last five files compiled are saved in an MRU list and you can save the edited Source windows into a Snippet and reload it. This is useful when you are debugging and want to focus on the lines that are a problem. You can search Input or Output buffers and hide the search options by clicking on the X. You can stop folder conversion with the Stop button. You can restart by selecting the option "Start Conversion from last file" or start at the beginning by deselecting this option. You can show or hide line numbers from the View Menu.