.NET Project Compatability

  • Thread starter Thread starter zacks
  • Start date Start date
Z

zacks

Using VS2005.

Are .NET projects written with different languages compatable with
each other? In other words, can I reference a VB.NET class library in
a C#.NET application and vice-versa?
 
Using VS2005.
Are .NET projects written with different languages compatable with
each other? In other words, can I reference a VB.NET class library in
a C#.NET application and vice-versa?


Yes you can

Compiled projects are not VB or C# they are just (IL) DLLs/Exes

Also you can create solutions which contain both vb.net and c# projects
 
Yes, I have heard that. Is there a legitimate reason for that?

Well there are reasons. How legitimate they are is a matter for debate :)

There vb.net team and the c# team inside microsoft are different sets of
people.

This has 2 major advantages for MS...

1.> Competing teams promote competition and therefore furthering of the product
suite as a whole.

2.> If you didn't have to choose between c# and vb.net, you would have to
find some other holy war to fight over and that (shudder) might have to involve
a non-ms language/practice)

Please note: I really like DotNet, I just really favor multi-language projects.
I'd really like to be able to combine vb.net, c#, c++ and IL in a single
project (and no ILMerge isn't good enough... I want this as an IDE experience)

I think each language has it's place and that each is very good at a particular
set of things. I'd just like to be able to combine the best of each :)
 
Please note: I really like DotNet, I just really favor multi-language projects.
I'd really like to be able to combine vb.net, c#, c++ and IL in a single
project (and no ILMerge isn't good enough... I want this as an IDE experience)

I think each language has it's place and that each is very good at a particular
set of things. I'd just like to be able to combine the best of each :)

<snip>

hear hear

Let's not forget C, Python and perhaps also LaTeX.

In the same IDE... Now isn't that the wet dream of every code-monkey.
[:)]-|--<

/Per

--

Per Erik Strandberg
..NET Architect, et cetera
Tomlab Optimization Inc.
http://tomopt.com/tomnet/
 
<snip>

hear hear

Let's not forget C, Python and perhaps also LaTeX.

In the same IDE... Now isn't that the wet dream of every code-monkey.

I sense a little sarcasm (Always hard to tell for certain in the written
word.)

However I would certainly not object to any language being able to integrate
in this fashion.

Of course you would pick and choose which languages you had in your own IDE.

I think it would be great to create an addtional partial class file in order
to implement some functionality in c# when the existing vb.net class didn't
support the functionality you were after.

Whilst this could be seriously abused, I think it could also prove useful.

Writing code in...

Whitespace( http://en.wikipedia.org/wiki/Whitespace_(programming_language) )
Or
BrainFuck (http://en.wikipedia.org/wiki/Brainfuck) (Sorry about the language
:))

.... would still be pretty stupid :)


But when something is truely best represented in a different language then
it's a little harsh to make the programmer create an entirely new project
just to support this.
 
I sense a little sarcasm (Always hard to tell for certain in the written
word.)

Ok, I went a little far with Python and LaTeX, but if I could have a
Visual Studio and/or Open Source alternative (SharpAndNativeDevelop
perhaps) that would allow me to easily integrate native code (f.x: C)
and .NET (f.x. C#) then I'd be really happy.

/Per

PS: I think all editors would have problems with Whitespace due to the
default indentation, but perhaps Emacs has Intellisense for it...
[:)]-|--<
 
Back
Top