C# & VB in same project.

F

farseer

Hello,
with VS2005 BETA, is it possible to use multiple languages in the same
project? For instance, can i have project with certain classes
implemented in VB and others with implemented built in C#?

thanks
 
M

Marina

I don't know the answer, but why would you want to? Why not pick one
language, and just go with that? They are virtually identical in
functionality.

And if you do have a situation where you need to use one of them for a
particular class, but the other for everything else, is it really so
difficult to just have 2 projects?
 
F

farseer

Ideally, that would be true...but, we don't always have a choice when
time is factored in.

i am aware of my options to solve the problem. However, the easiest
solution would be if the environment did support multiple languages, as
advertised(?). That is the question i am hoping someone may be able to
answer.
 
M

Mattias Sjögren

with VS2005 BETA, is it possible to use multiple languages in the same
project?

I'm sure you can write an MSbuild script that invokes both the C# and
the VB compiler, but I'm not sure how VS would react to it. The VS
project system is still very much centered around one language per
project.

Of course, even if you did this you'd end up with two binaries, just
like you would with two separate projects.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top