473,804 Members | 3,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using VB.NET and C# projects in one solution in VS2002/2003

All,

Who played with that? Is it possible to use VB.NET and C# projects in one
solution in VS2002/2003? Or this feature appeared only in VS2005? If yes,
then what kind of traps are on this way?

I see that I can add a VB.NET class library project to my VS2003 solution, I
can add a reference to my existing project in C#, I even can add USING to C#
source code, although it already doesn't have any intellisense comparing to
all other class libraries written in C#. And I can't make any call of any
class from this VB.NET class library. Clinics?

Just D.
Jul 30 '06 #1
5 1556
I have done a lot of demo on that and it works since VS 2002. Even you
included it in the reference but you still need to use the using keyword to
get the class in.

chanmm

"Just D." <no@spam.please wrote in message
news:K%Uyg.1721 1$Nv.7844@fed1r ead10...
All,

Who played with that? Is it possible to use VB.NET and C# projects in one
solution in VS2002/2003? Or this feature appeared only in VS2005? If yes,
then what kind of traps are on this way?

I see that I can add a VB.NET class library project to my VS2003 solution,
I can add a reference to my existing project in C#, I even can add USING
to C# source code, although it already doesn't have any intellisense
comparing to all other class libraries written in C#. And I can't make any
call of any class from this VB.NET class library. Clinics?

Just D.


Jul 30 '06 #2
I used VB.NET class library and c# projects in one solution in VS2003.
It worked fine.

you should make sure that the keyword in C# shouldn't be used in the
VB.NET source code, such as, variable name or others.

Sincerely,
simida

Just D. 写道:
All,

Who played with that? Is it possible to use VB.NET and C# projects in one
solution in VS2002/2003? Or this feature appeared only in VS2005? If yes,
then what kind of traps are on this way?

I see that I can add a VB.NET class library project to my VS2003 solution, I
can add a reference to my existing project in C#, I even can add USING toC#
source code, although it already doesn't have any intellisense comparing to
all other class libraries written in C#. And I can't make any call of any
class from this VB.NET class library. Clinics?

Just D.
Jul 30 '06 #3
Just D. wrote:
All,

Who played with that? Is it possible to use VB.NET and C# projects in
one solution in VS2002/2003? Or this feature appeared only in VS2005?
If yes, then what kind of traps are on this way?

I see that I can add a VB.NET class library project to my VS2003
solution, I can add a reference to my existing project in C#, I even
can add USING to C# source code, although it already doesn't have any
intellisense comparing to all other class libraries written in C#.
And I can't make any call of any class from this VB.NET class
library. Clinics?
It sounds like your C# classes aren't public. The default access in C# is
'internal'. Make sure that the 'public' keyword appears in your C# class
definitions and you should be fine.

e.g.

public class MyClass
{
}

-cd
Jul 30 '06 #4
Carl,

I'm talking about C#, the main solution has about 30 projects in C# and
everything works just great. I added one project in VB.NET and I'm not able
to get it in C# project after I added the reference as usual. The VB project
has a single class only.

"Carl Daniel [VC++ MVP]"
>Who played with that? Is it possible to use VB.NET and C# projects in
one solution in VS2002/2003? Or this feature appeared only in VS2005?
If yes, then what kind of traps are on this way?

I see that I can add a VB.NET class library project to my VS2003
solution, I can add a reference to my existing project in C#, I even
can add USING to C# source code, although it already doesn't have any
intellisense comparing to all other class libraries written in C#.
And I can't make any call of any class from this VB.NET class
library. Clinics?

It sounds like your C# classes aren't public. The default access in C# is
'internal'. Make sure that the 'public' keyword appears in your C# class
definitions and you should be fine.

e.g.

public class MyClass
{
}

-cd


Jul 30 '06 #5
Just D. <no@spam.please wrote:
I'm talking about C#, the main solution has about 30 projects in C# and
everything works just great. I added one project in VB.NET and I'm not able
to get it in C# project after I added the reference as usual. The VB project
has a single class only.
Make absolutely sure you're "using" the right namespace. I seem to
remember the IDE likes to add the project name to the namespace - look
at the DLL in Reflector to be absolutely sure of what's in there.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jul 30 '06 #6

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

Similar topics

1
1619
by: marcum williams | last post by:
Finding absolutely no documentation for updating existing projects on a remote server using Web Setup Projects. Any help would be much appreciated. thanks
1
1702
by: thdevdex | last post by:
I recently upgraded to Visual Studio.Net 2003. I'm a bit hesitant to remove VS2002.Net in fear of the removal messing up 2003. However, I need the disk space but don't want the hassle of restoring, etc. Has anyone had any experience removing 2002 following a 2003 upgrade? It is Enterprise Developer if that matters. Thanks. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded...
6
6581
by: Rudy Ray Moore | last post by:
I work with a multi-project workspace. One project (the "startup" project) has a "Configuration Type" of "Application (.exe)". The other 40 projects have a "Configuration Type" of "Static Library (.lib)". My question: Should the linker incrementally link when I make a change to one of the ..cpps in one of my .lib projects? For VC6 the answer is yes.
0
1286
by: Luther Hert | last post by:
I solved my problem, but I am not sure whether or not I understand how I arrived at the solution. I leraned about and checked: IIS> creating virtual directories> configuring web extensions > AspNet installation> and installing the lcoalhost web site. When I used Aspnet_regiis.exe to repair IIS Mappings for Asp.Net, my c:\drive directory was altered.
3
1517
by: TLin2100 | last post by:
I have been away from .NET development for 18 months. I recently installed VisualStudio 2003. I have no trouble compiling and running new C# ASP.Net projects, but when I try to open and run one of the ASP.Net projects I wrote under VS2002, I get the following error: "Unable to start debugging on the web server. Project is not configured to be debugged."
3
1959
by: epigram | last post by:
I've been creating some toy ASP.NET apps in an effort to understand the technology. I've something odd with regards to project/solution creation. If you create a new asp.net application, it appears that the project files get created in the URL specified Location field on the New Project dialog box. This makes sense to me. What is confusing is that the solution file gets created in a folder with the same name as the location folder (the...
0
1600
by: AC [MVP MCMS] | last post by:
I have a full blown VS.NET 2003 solution with a handful of library assemblies, two web projects, and a few web service projects. The entire solution is in VSS. Recently our build server went haywire and the best solution was to blow away everything on the build server related to this solution (both filebase and virtual directories hanging off the default website). I recreated the shell of our solution's web projects...
8
1151
by: Earl Damron | last post by:
Has anyone tried having both the original .NET and .NET 2003 on their workstation at the same time? I now need to build and support apps for two different clients that use different versions so I'm wondering if I can use the same workstation to build, test, and support apps for both clients. Thanks Earl
3
1082
by: MSNews | last post by:
I have a requirement to use simple project files which were created on 2003 on 2002 version of .NET. This is because the customer site does not yet have 2003 but the course projects were written in 2003. I have loaded the 1.1 framework on vs2002 but need to know if there is a simple or otherwise way to change the project somehow to make it load on 2002? TIA
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4304
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.