How to use VB.Net class project in C# application

  • Thread starter Thread starter Peter Afonin
  • Start date Start date
P

Peter Afonin

Hello:

I'm just starting to use C# for my ASP.Net applications. Before I used a
pretty complicated class written in VB.Net for my applications (I just added
this class project to several of my VS.Net solutions).

I don't have enough time to re-write this class in C#. Is there a way to
create a C# solution and use my original class project written in VB.Net?
Can I just create a new C# ASP.Net solution in VS.Net and add this class, or
there is some other way to do this?

I would appreciate your advice.

Thank you,
 
I'm not sure you can(don't quote me on that) but, IMHO the best way to do
this is to add the VB class to a VB.NET class library project and build it
into it's own assembly, then add a reference to it in your C# project.

HTH
Brian W
 
Back
Top