Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert VB.NET 2005 project to C# 2008 Project

Is there a tool to convert a VB.NET 2005 project to a C# 2008 project. I am trying to convert our project to VS 2008 and mostly port all the vb.NET code in some projects to C# 3.0/3.5.

like image 524
Greens Avatar asked Jan 23 '23 12:01

Greens


1 Answers

I had a similar decision to make with a VB.net project. Solution was a compromise, I decided to run with dual VB and C#.

Upgrading VB.NET 2005 to 2008 is easy bit.

Added CSharp and VB folders to App_Code and

<codeSubDirectories>
<add directoryName="CSharp" />
<add directoryName="VB" />
</codeSubDirectories>

to compilation section of web.config

As Kev says, it's not as straight forward as you might expect, and you will likely run into unexpected issues , that make running with dual language support the best solution

I know this doesn't directly answer the question, but it's an alternative approach

like image 194
Stuart Avatar answered Jan 26 '23 01:01

Stuart