This document describes how to set up a DotNet classic application for loading
when IntelliCAD is launched. This document will use the DotNetExamples.dll to
illustrate setting up demand loading.

It is described from the perspective of what steps an installer should take to
make demand loading work correctly. 

NOTE: To make demaman loading work in a development environment, the steps described
below can be done manually as well.

When IntelliCAD is installed, a directory named 'ApplicationPlugins' will be created
on the same level as the icad.exe executable file. A new directory under this one MUST
be created with a unique name. Perhaps the directory name could be your company name,
or even just the name of the app it stores, but your application(s) MUST be in a subdirectory
under the 'ApplicationPlugins' director.

In addition to your application(s), your unique directory must contain a file named
'PackageContents.xml'.  This file has content simalar to the following:


<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0">
  <Components>    
    <ComponentEntry AppName="DotNetExamples" ModuleName ="DotNetExamples.dll">
    </ComponentEntry>
  </Components>
</ApplicationPackage>


In the example text above, multiple applications can be demand loaded by making
multiple 'ComponentEntry' entries like this:


<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0">
  <Components>    
    <ComponentEntry AppName="DotNetExamples" ModuleName ="DotNetExamples.dll">
    </ComponentEntry>
    <ComponentEntry AppName="DotNetExamples2" ModuleName ="DotNetExamples2.dll">
    </ComponentEntry>
  </Components>
</ApplicationPackage>


One additional EMPTY 'PackageContents.xml' file MUST exist in the same directory
as the icad.exe executable file with the following content:


<?xml version="1.0" encoding="utf-8"?>
<ApplicationPackage SchemaVersion="1.0">
  <Components>    
  </Components>
</ApplicationPackage>


By EMPTY, it simply has NO 'ComponentEntry' entries.

That is all there is to it. All of this can be done by an installer used to install
your application, or it can be done manually in a development envronment. Once all
of these steps have been completed, launching IntelliCAD will automatically cause
the application to be loaded and ready for use when IntelliCAD is activated.

