Deploying Managed-Code Project Types
Visual Studio SDK installs a new project-type aggregator (ProjectAggregator2.dll) and also a Windows Installer package for redistribution (ProjectAggregator2.msi). You must use the new aggregator for managed-code project types. ProjectAggregator2 works arounds limitations in the Visual Studio project aggregator that prevent managed-code project types from working correctly. The following steps describe how to change your VSPackage to use the new aggregator.
Remove the NativeHierarchyWrapper project from your solution.
Remove any NativeHierarchyWrapper binaries from your setup.
Add ProjectAggregator2.msi to your setup. For more information, see Visual Studio SDK Redistributable Components.