I am trying to extend the VS2019 project properties page and add a new one but I can't get to work if I use the Microsoft guide:
Adding and removing property pages
Does anyone maybe have a sample code?
EDIT:
I currently have and normal VSIX Project that I used to create an Editor package and added menu items successfully. I basically just want to add a project property page that will be used on all "Class Library" projects.
Actually, follow the guidance and you can get what you want.
Follow this guidance:
Remove a property page
1) create a vsix c# project in VS2019 IDE and then add a new class like
RemovePage2) then add these namespaces in this file:
and implement the
IVsHierarchyinterface and add its implementation methods.3) After that, on the bottom of the page, add the main function to realize it:
Add a property page
1) add a new class called
DeployPropertyPageand implement Form andMicrosoft.VisualStudio.OLE.Interop.IPropertyPage. After it, add the implementation method as prompted.2) add these namespaces:
3) change the default function
GetPageInfointo:4) add the main function as the document said on the bottom of the file:
5) then register your new property page before the class name
DeployPropertyPage.Update 1
DeployPropertyPagelike these:
RemovePage like this:
And then you can modify your code in these methods.
Hope it could help you.