microsoft / VSProjectSystem

Documentation for extending Visual Studio with new types of projects.
Other
311 stars 87 forks source link

Fix a using error in the CpsExtension sample #356

Open Michron opened 2 years ago

Michron commented 2 years ago

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.

ghost commented 2 years ago

CLA assistant check
All CLA requirements met.