473,320 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Shared DLLs from Compact Framework drag unneccessary DLLs

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).

--
Many thanks,
Gary Varga
Jul 21 '05 #1
1 1501
Am I mistaken or should I have received a response within 48 hours as part of
my MSDN subscription?

Regards,
Gary

"Gary Varga" wrote:
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).

--
Many thanks,
Gary Varga

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Derrick | last post by:
Hopefully someone can explain to me why this doesn't work: - I have an interface ("IFoo"), the source of which lives in "Assembly A" - A class ("Foo") which implements this interface lives in...
2
by: Dan Baker | last post by:
I'm relatively new to the .cs world. I would like to have some "shared" .cs files, which several solutions can use. I don't want to place these in a ..dll, I simply want them included into...
1
by: Zamolxe | last post by:
The problem is, let's say I have an app that uses 25 controls form the toolbox, now for this app to work you need all dlls in the same dir as the exe, is there a way to insert them into the exe...
0
by: Shiraz | last post by:
Hi I have a question regarding the functionality of merge modules. Since this relates to my previous queries, I'll just give you a brief background on the topic. I had to make an installer for...
1
by: Gary Varga | last post by:
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...
5
by: bob | last post by:
Hi Using 2003 - targeting the compact framework (c#), but would like to do most development using the full.net (manually leaving out stuff not in the compact framework). Q. Trying to find a...
9
by: Dwight | last post by:
I have several projects that use the same dlls. When deploying these projects, is there a way that I can have all the shared dlls in one subdirectory and the project specific files in another? ...
1
markmcgookin
by: markmcgookin | last post by:
hi Folks, Just posting this as a solution to be honest (hope this is the right place) I created a form for PPC 2003 using VB.Net compact Framework One of my forms is longer than the screen,...
8
by: jehugaleahsa | last post by:
Hello: I have a Serializable class that I pass to clients via web services. In the web service, the class implements a shared interface. The clients also use the interface. The web reference...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.