PC Review


Reply
Thread Tools Rate Thread

Add VB.NET reference to C#

 
 
muralidhargvn@hotmail.com
Guest
Posts: n/a
 
      27th Jul 2006
Hi,

I have a C# and one VB.NET projects in my solution explorer. I want to
add VB.NET's

reference to C# project. Is it possible?

Thanks,

GVN.

 
Reply With Quote
 
 
 
 
James
Guest
Posts: n/a
 
      27th Jul 2006
hi,
Yes add a reference to existing project. All .NET Languages can
communicate with each other.

James Jenkins

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I have a C# and one VB.NET projects in my solution explorer. I want to
> add VB.NET's
>
> reference to C# project. Is it possible?
>
> Thanks,
>
> GVN.
>



 
Reply With Quote
 
muralidhargvn@hotmail.com
Guest
Posts: n/a
 
      27th Jul 2006
Thanks Mr James. I have another question. When I attempted to add a
reference, my C# application is expecting the reference in the form of
a DLL, instead, its an EXE in case of VB.NET.

James wrote:
> hi,
> Yes add a reference to existing project. All .NET Languages can
> communicate with each other.
>
> James Jenkins
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > I have a C# and one VB.NET projects in my solution explorer. I want to
> > add VB.NET's
> >
> > reference to C# project. Is it possible?
> >
> > Thanks,
> >
> > GVN.
> >


 
Reply With Quote
 
muralidhargvn@hotmail.com
Guest
Posts: n/a
 
      27th Jul 2006
Ya, I got it. This can be achieved if we change the VB.NET project's
output type as class library. By changing the output type as class
library, it generates a dll which can be added as a reference to C#
application.


(E-Mail Removed) wrote:
> Thanks Mr James. I have another question. When I attempted to add a
> reference, my C# application is expecting the reference in the form of
> a DLL, instead, its an EXE in case of VB.NET.
>
> James wrote:
> > hi,
> > Yes add a reference to existing project. All .NET Languages can
> > communicate with each other.
> >
> > James Jenkins
> >
> > <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi,
> > >
> > > I have a C# and one VB.NET projects in my solution explorer. I want to
> > > add VB.NET's
> > >
> > > reference to C# project. Is it possible?
> > >
> > > Thanks,
> > >
> > > GVN.
> > >


 
Reply With Quote
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      27th Jul 2006
Hi,

In that case you cannot add it,

What you can do is create a new project with all the Vb.net features you
want to share and move it to a DLL (class library) project.


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Mr James. I have another question. When I attempted to add a
> reference, my C# application is expecting the reference in the form of
> a DLL, instead, its an EXE in case of VB.NET.
>
> James wrote:
>> hi,
>> Yes add a reference to existing project. All .NET Languages can
>> communicate with each other.
>>
>> James Jenkins
>>
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hi,
>> >
>> > I have a C# and one VB.NET projects in my solution explorer. I want to
>> > add VB.NET's
>> >
>> > reference to C# project. Is it possible?
>> >
>> > Thanks,
>> >
>> > GVN.
>> >

>



 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      27th Jul 2006
Actually, in .NET 2.0, you can set a reference to EXE files (VS.NET
supports this as well).

Whether or not it is actually a good idea, however, is debatable.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:%(E-Mail Removed)...
> Hi,
>
> In that case you cannot add it,
>
> What you can do is create a new project with all the Vb.net features you
> want to share and move it to a DLL (class library) project.
>
>
> --
> --
> Ignacio Machin,
> ignacio.machin AT dot.state.fl.us
> Florida Department Of Transportation
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thanks Mr James. I have another question. When I attempted to add a
>> reference, my C# application is expecting the reference in the form of
>> a DLL, instead, its an EXE in case of VB.NET.
>>
>> James wrote:
>>> hi,
>>> Yes add a reference to existing project. All .NET Languages can
>>> communicate with each other.
>>>
>>> James Jenkins
>>>
>>> <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>> > Hi,
>>> >
>>> > I have a C# and one VB.NET projects in my solution explorer. I want to
>>> > add VB.NET's
>>> >
>>> > reference to C# project. Is it possible?
>>> >
>>> > Thanks,
>>> >
>>> > GVN.
>>> >

>>

>
>



 
Reply With Quote
 
=?Utf-8?B?cm1hY2lhcw==?=
Guest
Posts: n/a
 
      28th Jul 2006
You can also do this in .NET v1.1, but only if you complie you application
using the command line. The Visual Studio .NET 2003 IDE does not allow you
to reference an *.exe assembly, but it is possible through the command line.

"Nicholas Paldino [.NET/C# MVP]" wrote:

> Actually, in .NET 2.0, you can set a reference to EXE files (VS.NET
> supports this as well).
>
> Whether or not it is actually a good idea, however, is debatable.
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
> in message news:%(E-Mail Removed)...
> > Hi,
> >
> > In that case you cannot add it,
> >
> > What you can do is create a new project with all the Vb.net features you
> > want to share and move it to a DLL (class library) project.
> >
> >
> > --
> > --
> > Ignacio Machin,
> > ignacio.machin AT dot.state.fl.us
> > Florida Department Of Transportation
> >
> > <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> Thanks Mr James. I have another question. When I attempted to add a
> >> reference, my C# application is expecting the reference in the form of
> >> a DLL, instead, its an EXE in case of VB.NET.
> >>
> >> James wrote:
> >>> hi,
> >>> Yes add a reference to existing project. All .NET Languages can
> >>> communicate with each other.
> >>>
> >>> James Jenkins
> >>>
> >>> <(E-Mail Removed)> wrote in message
> >>> news:(E-Mail Removed)...
> >>> > Hi,
> >>> >
> >>> > I have a C# and one VB.NET projects in my solution explorer. I want to
> >>> > add VB.NET's
> >>> >
> >>> > reference to C# project. Is it possible?
> >>> >
> >>> > Thanks,
> >>> >
> >>> > GVN.
> >>> >
> >>

> >
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I reference a cell in a separate list, I am unable to sort thatlist and keep the reference. Any suggested solutions? Mike C Microsoft Excel Discussion 2 15th Feb 2008 02:32 PM
Insert reference/cross-reference doesn't display my header text =?Utf-8?B?QmFiczI1?= Microsoft Word Document Management 3 24th Oct 2007 01:49 PM
ASP.NET 2.0: master pages and web user controls: reference to a non-shared member requires an object reference bminder Microsoft ASP .NET 0 24th Jun 2005 01:22 AM
Visual Basic .Net IDE Add-In that adds a Web Reference or Normal Reference to Current Project Bahige Microsoft VB .NET 0 1st Nov 2004 06:24 PM
Word 2002 cross reference problem: Error! Reference source not found Sam Dutton Microsoft Word Document Management 0 31st Mar 2004 02:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 AM.