473,388 Members | 1,188 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,388 software developers and data experts.

optional references

We have an application where a number of features are optional. These features are contained within separate dll assemblies. We don't want to distribute the optional dll assemblies if the user doesn't use it (it means for automatic updates via the web we don't download large amounts of data that isn't needed)
However, the application has references to these assemblies even though the code may never be called and generates exceptions
In c++ you can achieve this effect by telling the application not to load them until they are required
Is there a way to achive this in .net

Steve
Jul 21 '05 #1
1 1409
You can do this in a couple of ways:

1. Create a custom installer that installs only necessary assemblies. Note
that your installer will do a bit of compilation during install to
accomplish this. Downside: have to code a rather complex installer project.

2. Use reflection to late bind. Downside: still complex and potential loss
of performance.

Beyond that, you will have to distribute different versions as different
products.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"steve" <an*******@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
We have an application where a number of features are optional. These features are contained within separate dll assemblies. We don't want to
distribute the optional dll assemblies if the user doesn't use it (it means
for automatic updates via the web we don't download large amounts of data
that isn't needed). However, the application has references to these assemblies even though the code may never be called and generates exceptions. In c++ you can achieve this effect by telling the application not to load them until they are required. Is there a way to achive this in .net.

Steve

Jul 21 '05 #2

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

Similar topics

5
by: John T | last post by:
I am trying to make a function that takes an optional parameter that gets passed by reference. Here is the first line of my function definition: function funQueryDatabase($strQuery,...
0
by: Jake | last post by:
I am using ant 1.5.4 I have optional.jar in $ANT_HOME/lib (the one that was distributed with said version of ant) so for example with regards to junit I have junit.jar in $ANT_HOME/lib there...
6
by: Otto Wyss | last post by:
I've the following function declaration: wxTree GetLastChild (const wxTree& item, long& cookie) const; I'd like to make the cookie parameter optional, i.e. "long& cookie = ....", without...
4
by: Gerry Abbott | last post by:
Hi All, Im trying to use thie combination but have not had success. Below is the function It tried the following myriskLevel(2,2) myrisklevel(0,0,2) and the ismissing(Three) alwasy...
1
by: steve | last post by:
We have an application where a number of features are optional. These features are contained within separate dll assemblies. We don't want to distribute the optional dll assemblies if the user...
14
by: cody | last post by:
I got a similar idea a couple of months ago, but now this one will require no change to the clr, is relatively easy to implement and would be a great addition to C# 3.0 :) so here we go.. To...
1
by: Tookelso | last post by:
Hello, I would like to have a group of elements which are *required* in one context, but each one is *optional* in another context. For example: I have a configuration file which has a...
12
by: pamelafluente | last post by:
Hi guys, In the past I have used several time optional parameters in my function. But Now I am more inclined to think that they are more dangerous than useful, and probably better to be...
7
by: jamesclose | last post by:
My problem is this (apologies if this is a little long ... hang in there): I can define a function in VB.NET with optional parameters that wraps a SQL procedure: Sub Test(Optional ByVal Arg1...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.