Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically add dependency DLL reference upon refer
Message
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
C# 3.0
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01571938
Message ID:
01572240
Vues:
42
In short - you can't. Although Visual Studio and .NET can easily tell dependencies from assembly meta data you would not automatically want to add all dependencies because not of them may actually be used. JIT compilation doesn't load any code that never gets run...

You can achieve what you're trying to do with NuGet - NuGet packages can have related dependencies (which must either be embedded into the package or reference another NuGet package).

NuGet Documentation

+++ Rick ---

>Hi
>
>How to Programmatically add dependency DLL reference upon reference added?
>
>ie. DLL1 -> DLL2 -> DLL3
>
>Whenever I add DLL1 to project's reference, I wan to automatically DLL2, DLL3 also included.
>
>How to achieve it?
>
>Thank you
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform