Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / January 2005

Tip: Looking for answers? Try searching our database.

Shared DLLs from Compact Framework drag unneccessary DLLs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gary Varga - 25 Jan 2005 12:23 GMT
I have an application which runs on both CE.NET and the full framework. To
allow for a shared code base the following describes the assembly structure:

1) There is an executable binary for each of CE.NET and .NET (Forms).

2) These Forms binaries reference and use classes defined in a business
logic library (BLL) class assembly.

3) The BLL references and uses classes in the data access library (DAL)
class assembly.

4) The DAL uses functionality in the reflection namespace to dynamically
load platform specific data access assemblies that contain classes that
implement interfaces defined in the DAL and are used in the BLL.

5) The BLL and DAL assemblies only reference System, System.Data and
System.Xml (all retargetable) and the BLL also references the DAL.

6) The BLL and DAL assemblies are defined in a CE solution i.e. Smart Device
projects.

7) The full .NET forms solution references the BLL.

The problem is that for some reason VS.NET 2003 places
Microsoft.VisualBasic.dll, mscorlib.dll, System.Drawing.dll and
System.Windows.Forms.dll in the BLL\Debug\bin directory although they are not
referenced by it, the DAL or the platform specific data access assemblies.
These assemblies are used instead of the fully framework assemblies defined
in the .NET forms project because of the reference to this directory.

The problem I have is that:

a) unreferenced assemblies are placed in the BLL\Debug\bin directory

b) these DLLs are used instead in place of those referenced in the .NET
Forms project.

This does not appear to be a problem with .NET or VB.NET (the clients chosen
language) but with Visual Studio unnecessarily placing the assemblies in the
bin directory when it is not specified or requested (a). I accept that it
will and should attempt to use assemblies in reference directories (b).

Signature

Many thanks,
Gary Varga

Gary Varga - 31 Jan 2005 13:17 GMT
Am I mistaken or should I have received a response within 48 hours as part of
my MSDN subscription?

Regards,
Gary

> I have an application which runs on both CE.NET and the full framework. To
> allow for a shared code base the following describes the assembly structure:
[quoted text clipped - 37 lines]
> bin directory when it is not specified or requested (a). I accept that it
> will and should attempt to use assemblies in reference directories (b).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.