.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

vb.net and c# code in same project?

4 REPLIES 4
Reply
Message 1 of 5
Anonymous
557 Views, 4 Replies

vb.net and c# code in same project?

As I understand it, each project in VS2005 must be of the same language which means each assembly must be in the same
language.
Is that right? or can I somehow make one class in vb.net and another in c# within the same project.
Hold down the laughter, I know this is a rookie question, but I have converted all code to vb.net so far and its getting
old, I'd like to be able to use both syntaxes within a project.
thx
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: Anonymous

James ,
You can't mix code in a project ..

,, but 'cause each assembly is compatible at the IL level, you CAN reference
a DLL created with a different language into your project. Nominating the
same namespace for both assemblies will make that process a little easier
too.

regards
/// kwb

"James Maeding" wrote in message
news:5425038@discussion.autodesk.com...
As I understand it, each project in VS2005 must be of the same language
which means each assembly must be in the same
language.
Is that right? or can I somehow make one class in vb.net and another in c#
within the same project.
Hold down the laughter, I know this is a rookie question, but I have
converted all code to vb.net so far and its getting
old, I'd like to be able to use both syntaxes within a project.
thx
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
Message 3 of 5
Chumplybum
in reply to: Anonymous

this is what i use to convert code to vb.net

http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
Message 4 of 5
Anonymous
in reply to: Anonymous

You can mix VB.NET and C# code in the same assembly (as of .NET 2.0), there
just isn't any support for doing so in the Visual Studio 2005 IDE.

Dan

"Kerry Brown" wrote in message
news:5425235@discussion.autodesk.com...
James ,
You can't mix code in a project ..

,, but 'cause each assembly is compatible at the IL level, you CAN reference
a DLL created with a different language into your project. Nominating the
same namespace for both assemblies will make that process a little easier
too.

regards
/// kwb

"James Maeding" wrote in message
news:5425038@discussion.autodesk.com...
As I understand it, each project in VS2005 must be of the same language
which means each assembly must be in the same
language.
Is that right? or can I somehow make one class in vb.net and another in c#
within the same project.
Hold down the laughter, I know this is a rookie question, but I have
converted all code to vb.net so far and its getting
old, I'd like to be able to use both syntaxes within a project.
thx
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com
Message 5 of 5
Anonymous
in reply to: Anonymous

you know, I always thought there would be more people doing vb.net than c#, but I am finding the opposite.
I am guessing this is because the people that know the ObjectARX side of things are C++ people, so the examples of using
.net are mostly c#.
I do like the compactness of the c# syntax, I kind of wish there was only c# or vb.net, not both so the examples were
not split between the two.

Mark Dubbelaar <>
|>this is what i use to convert code to vb.net
|>
|>http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
James Maeding
Civil Engineer and Programmer
jmaeding - athunsaker - com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost