CreatePkgDef Utility


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Takes a .dll file for a Visual Studio extension as a parameter and creates a .pkgdef file to accompany the .dll. The .pkgdef file contains all the information that would otherwise be written to the system registry when the extension is installed.

System_CAPS_ICON_note.jpg Note

Most of the project templates that are included in the Visual Studio SDK automatically create .pkgdef files as part of the build process. This document is intended for those who want to create packages manually, or convert existing packages to use .pkgdef deployment.

CreatePkgDef /out=FileName [/codebase] [/assembly] AssemblyPath  

Required. Sets the name of the .pkgdef output file toFileName.

Optional. Forces registration with the CodeBase utility.

Forces registration with the Assembly utility.

The path of the .dll file from which you want to generate the .pkgdef.

Extension deployment by using .pkgdef files replaces the registry requirements of earlier versions of Visual Studio.

The .pkgdef files must be installed in one of the following locations: %localappdata%\Microsoft\Visual Studio\14.0\Extensions\ or %vsinstalldir%\Common7\IDE\Extensions\. If the installation folder is %localappdata%\Microsoft\Visual Studio\14.0\Extensions\, the extension will be recognized by Visual Studio, but will be disabled by default. The user can enable the extension by using Extensions and Updates. If the installation folder is %vsinstalldir%\Common7\IDE\Extensions\, the extension is enabled by default.

System_CAPS_ICON_note.jpg Note

The Extensions and Updates tool cannot be used to access an extension unless it is installed as part of a VSIX package.

CreateExpInstance Utility