473,563 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Visua lBasic.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 1518
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.Visua lBasic.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
1323
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 "Assembly B", which obviously has a reference to "A" - In "Assembly C", which has references to both "A" and "B", I'm trying to cast an instance of...
2
3159
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 various applications. I have tried several methods, but most have failed. The most obvious way (I thought) was to place the .cs files in a parent folder...
1
1577
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 file? I have some comps installed and if I drag them to my form and the compile it in the bin folder the control dll is not present but the app...
0
2737
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 an application which was to share dlls with another application and these dlls were not self-registering. Someone on the forum suggested a few...
1
312
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 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...
5
3323
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 way of converting a project to have builds for both compact and full. Project properties doesn't seem to help Thanks
9
3527
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? Programs | |-App 1 | |-App 2 |
1
1834
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, and the Autoscroll function that is on VB.Net is not supported by the compact framework (shocking.. I know!) But I figured out how to do it...
8
1456
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 automatically creates an class on the client, but it doesn't implement the interface. This means that I have to implement another class that...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7945
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5208
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3634
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.