optional references

G

Guest

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
 
C

Cowboy \(Gregory A. Beamer\)

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 said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top