project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Add support for adding/remove property pages via MSBuild properties

Open davkean opened this issue 8 years ago • 2 comments

The legacy project system respects the following properties to add/remove configuration and configuration-independent property pages:

<PropertyGroup>
    <CfgPropertyPagesGuidsAdd[Language]>{GUID}</CfgPropertyPagesGuidsAdd[Language]>
    <CfgPropertyPagesGuidsRemove[Language]>{GUID}</CfgPropertyPagesGuidsRemove[Language]>
    <PropertyPagesGuidsAdd[Language]>{GUID}</PropertyPagesGuidsAdd[Language]>
    <PropertyPagesGuidsRemove[Language]>{GUID}</PropertyPagesGuidsRemove[Language]>
</PropertyGroup>

For example, C#:

<PropertyGroup>
    <CfgPropertyPagesGuidsAddCSharp>{GUID}</CfgPropertyPagesGuidsAddCSharp>
    <CfgPropertyPagesGuidsRemoveCSharp>{GUID}</CfgPropertyPagesGuidsRemoveCSharp>
    <PropertyPagesGuidsAddCSharp>{GUID}</PropertyPagesGuidsAddCSharp>
    <PropertyPagesGuidsRemoveCSharp>{GUID}</PropertyPagesGuidsRemoveCSharp>
</PropertyGroup>

Or VB:

<PropertyGroup>
    <CfgPropertyPagesGuidsAddVB>{GUID}</CfgPropertyPagesGuidsAddVB>
    <CfgPropertyPagesGuidsRemoveVB>{GUID}</CfgPropertyPagesGuidsRemoveVB>
    <PropertyPagesGuidsAddVB>{GUID}</PropertyPagesGuidsAddVB>
    <PropertyPagesGuidsRemoveVB>{GUID}</PropertyPagesGuidsRemoveVB>
</PropertyGroup>

davkean avatar Apr 26 '17 00:04 davkean

The behavior is actually add; PropertyPagesGuids + PropertyPagesGuids[Language]

davkean avatar Mar 01 '18 06:03 davkean

Is there any movement with this? I was creating custom property pages and found out today the hard way that CfgPropertyPagesGuidsAddCSharp does not work for SDK projects. :-(

johnwc avatar Apr 07 '19 07:04 johnwc