Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reusable classes
Message
De
06/08/2010 11:44:30
 
 
À
02/08/2010 13:58:24
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
Divers
Thread ID:
01474897
Message ID:
01475540
Vues:
28
>Hi again,
>
>Well, another newbie question.
>
>I have a vb file containing a class definition. I what to be able to use the same vb file is different solutions. But when I reference an existing vb file in a location outside the project, VS makes a copy of the original and passes it in the current project folder. Hence, I now of two copies of the file. Now when I modify one of the copies, I have make sure I update all the other copies.
>
>Is there a way to have a central repository of shared files that all project share?

Sure :)
Create Solution
Add Project1 where your "Shared" files located
Add or Create Project2
Add Project1 reference to Project2

Now you will have solution with both projects :) (nealy the same what you want to modify just one instance)
and reference to the file in second project

Denis.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform