473,241 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

.NET Project Compatability

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?

Apr 19 '07 #1
8 1256
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

--
Rory
Apr 19 '07 #2
But of course, you can't mix C# and Vb.NET (say) source files in the same
project ;).
<za***@construction-imaging.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
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?

Apr 19 '07 #3
But of course, you can't mix C# and Vb.NET (say) source files in the
same project ;).

Something I would dearly love to be able to do.

--
Rory
Apr 19 '07 #4
On Apr 19, 1:17 pm, "Duracel" <Dura...@nospam.comwrote:
But of course, you can't mix C# and Vb.NET (say) source files in the same
project ;).
Yes, I have heard that. Is there a legitimate reason for that?
>
<z...@construction-imaging.comwrote in message

news:11**********************@e65g2000hsc.googlegr oups.com...
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?
Apr 19 '07 #5
On Apr 19, 1:17 pm, "Duracel" <Dura...@nospam.comwrote:
>
>But of course, you can't mix C# and Vb.NET (say) source files in the
same project ;).
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 :)

--
Rory
Apr 19 '07 #6
On 19 Apr, 21:29, Rory Becker <RoryBec...@newsgroup.nospamwrote:

<snip>
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/
Apr 24 '07 #7
On 19 Apr, 21:29, Rory Becker <RoryBec...@newsgroup.nospamwrote:
>
<snip>
>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.
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/Whitesp...mming_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.

--
Rory

Apr 24 '07 #8
On 24 Apr, 12:31, Rory Becker <RoryBec...@newsgroup.nospamwrote:

<snip>
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...
[:)]-|--<

Apr 24 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: spiffo | last post by:
The Main Issue in a nutshell I am a corporate developer, working for a single company. Got a new project coming up and wondering if I should stay with Python for this new, fairly large project,...
1
by: Mullin Yu | last post by:
I have a web services, and calling the VB COM which I add reference to my project by Reference -> Add Reference - > COM But, if I modify my COM object, it seems that I need to remove the...
4
by: WStoreyII | last post by:
I know that the main two browsers are ie and netscape. However, how do i know if browsers like aol and other abstract browser put out by isps like sbc and earthlink are compatable with asp.net. I...
6
by: Nak | last post by:
Hi there, I was wondering if anyone knew of a way to maintain compatability with assemblies providing the interfaces remains the same? At the moment if I re-compile an assembly without actually...
0
by: SenthilVel | last post by:
hi I have my application built with Dotnet Framework 1.1 and now i can see most of clients having both the versions 2.0 and 1.1 in their systems, i get an issue when i run my 1.1 application . ...
1
by: abbu | last post by:
Hi, Can anybody explain the difference between standard and compatability mode compilatin in C++? Regards, abbu
1
by: internet.system.error | last post by:
Hello, I write the casual Java code, and to make life easier at work I´ve decided to write a C# application that reads two excel files and does the usual number crunching and spits out a new file....
1
by: jsmall | last post by:
Hi, We currently have a fairly old product, which was originally only compatible with SQL 2000. When we upgraded our server to SQL 2005, the client product gave us a "This product is not...
10
by: Bobby | last post by:
Hi, The organisation I work for is on the verge of buying Microsoft Office 2007 Pro Plus OLP NL. We currently use Office Pro 2003. Our business system is written in Access 2003 with a SQL Server...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.