Click or drag to resize

Packaging a .NET user interface extension

Packaging a .NET extension prepares the extension to be deployed as described in About deploying .NET user interface extensions.

Note Note

By default, PackageBuilder installs extensions for all users of the computer and requires administrative permissions on the computer. To create packages that install the extensions for only the current user of the computer, see "Deploying packages to only the current user."

Before you begin

Download (via the link in Related information) and install WiX version 3.0 (or higher) on development computers in order to use the PackageBuilder tool.

To package a .NET extension library into a .CAB file:

  1. Run the PackageBuilder tool by executing the following command:
“%BCMNETSDK%\Deployment\Extension\PackageBuilder.exe” “PathToExtensionDLL
Note Note

If this produces the error "System.InvalidOperationException: The path to the bootstrappers was not found," check that the path is correct in the value of the registry key that corresponds to the latest installed version of Visual Studio at the following location: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\GenericBootstrapper

To automatically package an extension every time you build it with Visual Studio:

  1. In Visual Studio, open the project’s properties.
  2. Click the Compile tab. The Compile options page appears.
  3. Click the Build Events button . The Build Events dialog appears.
  4. Click Edit Post-build button. The Post-build Event Command Line dialog appears.
  5. Add the following command line: "%BCMNETSDK%\Deployment\Extension\PackageBuilder.exe" "$(TargetPath)"
  6. Click OK to save your changes.

The next time you compile the project, the PackageBuilder will creates a CAB file in the Package subfolder of the project’s output folder. The PackageBuilder tool also creates a Support subfolder where it places all files that have been used to build the .CAB file:

See Also