The CpsExtension sample would fail to load for target projects because it would fail to create a instance of CustomDebugger. This is caused by the ImportingConstructor attribute, which should be System.ComponentModel.Composition.ImportingConstructorAttribute instead of System.Composition.ImportingConstructorAttribute.
With this change the extension will load without an error when opening a project that implements the nuget from the sample. After this fix, I still don't get the expected behaviour in Visual Studio as is described in the documentation of the sample, so I suspect there is something else that's broken as well.
The CpsExtension sample would fail to load for target projects because it would fail to create a instance of
CustomDebugger
. This is caused by theImportingConstructor
attribute, which should beSystem.ComponentModel.Composition.ImportingConstructorAttribute
instead ofSystem.Composition.ImportingConstructorAttribute
.With this change the extension will load without an error when opening a project that implements the nuget from the sample. After this fix, I still don't get the expected behaviour in Visual Studio as is described in the documentation of the sample, so I suspect there is something else that's broken as well.