How do I extend the project properties screen in Visual Studio? -


When you view project properties in Visual Studio, you get many tabs.

There are standard "apps", "build", "build events" and more.

It is also possible to add a custom tab, for example, to see the properties of a webapp or VSIX project, you get separate tabs.

How do I write a VSX addin that adds a custom tab to the property property window?

Look at this article :.

You create a page:

  class DeployPropertyPage: form, Microsoft.VisualStudio.OLE.Interop.IPropertyPage {. . . . // Summary: Return a static describing your property page Public Zero GetPageInfo (Microsoft.VisualStudio.OLE.Interop.PROPPAGEINFO [] pPageInfo) {PROPPAGEINFO information = new PROPPAGEINFO (); Info.cb = (uint) Marshall. Size (typePPAGEINFO); Info.dwHelpContext = 0; Info.pszDocString = null; Info.pszHelpFile = null; Info.pszTitle = "Deployment"; // Assign tab name information. SIZE.cx = this.Size.Width; Info.SIZE.cy = this. Shape. height; If (pPageInfo! = Null & amp; amp; pPageInfo.Length & gt; 0) pPageInfo [0] = Info; }}   

and you register it like this:

  [typeV (DeployPropertyPage), RegisterUsing = RegistrationMethod.CodeBase]] < / Code>   

Comments