project-system
project-system copied to clipboard
Add support for adding/remove property pages via MSBuild properties
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>
The behavior is actually add; PropertyPagesGuids + PropertyPagesGuids[Language]
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. :-(