Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Libs and DLLs in c#
Message
De
15/06/2007 00:09:36
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01232514
Message ID:
01233363
Vues:
10
Thanks everyone, that helps a lot.

I'm thinking I probably should avoid having 200+ DLLs in a project if I can avoid it.

So I think I'll design some main DLLs for high use stuff like controls and datasets etc, then specialty type stuff that doesn't get used much can go into some other DLLs or be in stand alone DLLs.

Another DLL or 2 that is specific to a group of apps (Handling data and forms/controls that are common to that set of apps.)

A Main EXE and maybe a DLL or 2 directly related 2 it to keep some sense of order in the code, and I should be good to go.

I like having at least some feel for the overall layout before I plunge in and start building stuff. I think I have that now.

John


>John,
>
>.NET has no concept of static linking - everything is dynamically loaded at runtime. The obj files etc. is purely internal stuff for the compiler that generates the appropriate IL assembly.
>
>Given that .NET dynamically compiles code before it's executed and only loads what actually runs there's not much need to have static compilation/linking.
>
>If you're after a single execution package there are a few tools like ILMerge that can package various .NET binaries into a single executable.
>
>+++ Rick ---
>
>>Just getting started with .NET and some C# projects. At this point I'm a total newb to c# and .NET, hopefully my questions don't sound too stupid.
>>
>>I have a few questions on library design so that I can get a better handle on how to properly layout an app.
>>
>>I notice when I create a Windows control library project it gets compiled into a DLL, I don't see an option to change this into an obj or lib or similar type file, are all c# libraries external dlls or can they be statically linked into the main file at compile time?
>>
>>Link may not be the right term here, but if you've worked in c you can probably figure out what I mean.
>>
>>I've also heard that putting too many objects/classes into a c# library can cause troubles, don't know if that is true, but curious if there is an optimum size or number of classes for a library?
>>
>>I'm still struggling to learn the basics, but I'd like to get my head around the overall layout of a larger app so that I don't have to go back and recode too many times as I progress. Any feed back is appreciated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform