Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question
Message
 
À
15/03/2005 17:42:32
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
00996115
Message ID:
00996136
Vues:
15
Bonnie,

Thank you for your quick reply. That is what I needed. I am going to be referencing projects from other solutions. Don't go to any trouble but if you think of this step to help with the dilemna of an old .dll I would appreciate it. I will look myself.

Thanks again,
Paul

>Paul,
>
>The "using" statement is simply a way to implement a shortcut in your code so that you don't have to say xyzproject.MyClass, you would simply say MyClass. But, in order for one project to recognize another, there's an additional step you have to do and that is to add a reference to the xyzproject. In the IDE, in the Solution Explorer, right-click on your project and choose "Add Reference" and click on the Projects tab. All the projects from the existing Solution will be displayed in the ListView. If you want a project from another Solution, simply click the Browse button and go find the .DLL. This will copy the .DLL into your bin\debug folder. The downside to grabbing a .DLL from another Solution like this is that when that .DLL changes, you are no longer referencing the changed .DLL (because you put a copy of the old one in your project). I think there's a way to overcome this, but off the top of my head, I don't remember what needs to be done (and I can't look it up right now).
>Someone else may know, but this should at least get you started ...
>
>~~Bonnie
>
>
>
>
>>I am new to .net and visual studio .net.
>>
>>From within a c# file I am wanting to reference code that exists in another solution. Can I do this? I tried issuing a 'using xyzproject' statement. But the compiler doesn't like this statement.
>>
>>What am I doing wrong?
>>
>>Sorry about the stupid question...
>>
>>Paul
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform