473,382 Members | 1,745 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,382 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 1260
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.