Skip to content

Commit

Permalink
Add new Windows Forms specific props (#6860)
Browse files Browse the repository at this point in the history
Resolves #6858

### Context

Add new properties introduced in https://github.com/dotnet/designs/blob/main/accepted/2021/winforms/streamline-application-bootstrap.md#msbuild-properties

### Test

Tested by updating the local version in C:\Program Files\Microsoft Visual Studio\2022\Preview\Xml\Schemas\1033\MSBuild and verifying in VS
  • Loading branch information
RussKie authored Sep 20, 2021
1 parent 57f14a7 commit 9b5ccf0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/MSBuild/MSBuild/Microsoft.Build.CommonTypes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,25 @@ elementFormDefault="qualified">
</xs:simpleType>
</xs:element>
<xs:element name="AppConfigForCompiler" type="msb:StringPropertyType" substitutionGroup="msb:Property"/>
<xs:element name="ApplicationDefaultFont" type="msb:StringPropertyType" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="ApplicationDefaultFont" _locComment="" -->Customizes the application default font. The format equivalent to the output of FontConverter.ConvertToInvariantString(). Applies only to Windows Forms projects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ApplicationHighDpiMode" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="ApplicationHighDpiMode" _locComment="" -->Customizes the application DPI awareness mode. Applies only to Windows Forms projects.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="SystemAware" />
<xs:enumeration value="PerMonitorV2" />
<xs:enumeration value="PerMonitor" />
<xs:enumeration value="DpiUnaware" />
<xs:enumeration value="DpiUnawareGdiScaled" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ApplicationIcon" type="msb:StringPropertyType" substitutionGroup="msb:Property"/>
<xs:element name="ApplicationRevision" type="msb:StringPropertyType" substitutionGroup="msb:Property">
<xs:annotation>
Expand All @@ -1182,6 +1201,16 @@ elementFormDefault="qualified">
<xs:documentation><!-- _locID_text="ApplicationVersion" _locComment="" -->Matches the expression "\d\.\d\.\d\.(\d|\*)"</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ApplicationUseCompatibleTextRendering" type="msb:boolean" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="ApplicationUseCompatibleTextRendering" _locComment="" -->Indicates whether to set UseCompatibleTextRendering property defined on certain controls (boolean). Applies only to Windows Forms projects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ApplicationVisualStyles" type="msb:boolean" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="ApplicationVisualStyles" _locComment="" -->Indicates whether to enable or disable visual styles (boolean). Applies only to Windows Forms projects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AppDesignerFolder" type="msb:StringPropertyType" substitutionGroup="msb:Property">
<xs:annotation>
<xs:documentation><!-- _locID_text="AppDesignerFolder" _locComment="" -->Name of folder for Application Designer</xs:documentation>
Expand Down

0 comments on commit 9b5ccf0

Please sign in to comment.