Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new properties to Windows Forms types schema #6858

Closed
RussKie opened this issue Sep 15, 2021 · 0 comments · Fixed by #6860
Closed

Add new properties to Windows Forms types schema #6858

RussKie opened this issue Sep 15, 2021 · 0 comments · Fixed by #6860
Assignees
Labels
Area: IntelliSense Issues with the XSD-schema driven code completion experience for MSBuild in Visual Studio. Partner request triaged
Milestone

Comments

@RussKie
Copy link
Member

RussKie commented Sep 15, 2021

Windows Forms has added new application bootstrap functionality which is getting shipped in .NET 6.0 and Dev17 that relies on the new MSBuild properties:

  <PropertyGroup>
     <ApplicationIcon />
     <ApplicationManifest>app1.manifest</ApplicationManifest>

+    <!--
+       Purpose: controls whether to emit: Application.EnableVisualStyles();
+       Default=true
+       Empty value=true
+     -->
+    <ApplicationVisualStyles>[true|false]</ApplicationVisualStyles>

+    <!--
+       Purpose: the value in: Application.SetCompatibleTextRenderingDefault(...);
+       Default=false
+       Empty value=false
+     -->
+    <ApplicationUseCompatibleTextRendering>[true|false]</ApplicationUseCompatibleTextRendering>

+    <!--
+       Purpose: contains a custom font information; controls whether to emit: Application.SetDefaultFont(new Font(....));
+       Default=''
+       Empty value='', implies Control.DefaultFont
+     -->
+    <ApplicationDefaultFont>[equivalent to Font.ToString()]</ApplicationDefaultFont>


+    <!--
+       Purpose: the value in: Application.SetHighDpiMode(...);
+       Default=SystemAware
+       Empty value=SystemAware
+     -->
+    <ApplicationHighDpiMode>[string/HighDpiMode enum value]</ApplicationHighDpiMode>
  </PropertyGroup>

These properties should live alongside other properties Windows Forms apps use, such as:

  • ApplicationIcon
  • ApplicationManifest
  • StartupObject

I'm happy to get these new properties added myself, but would like some guidance on how to do this.

@RussKie RussKie added Partner request needs-triage Have yet to determine what bucket this goes in. labels Sep 15, 2021
@RussKie RussKie added this to the 17.0 milestone Sep 15, 2021
@RussKie RussKie changed the title Add ApplicationDefaultFont property to Windows Forms types schema Add new property to Windows Forms types schema Sep 15, 2021
@RussKie RussKie changed the title Add new property to Windows Forms types schema Add new properties to Windows Forms types schema Sep 15, 2021
@rainersigwald rainersigwald added the Area: IntelliSense Issues with the XSD-schema driven code completion experience for MSBuild in Visual Studio. label Sep 16, 2021
@benvillalobos benvillalobos removed the needs-triage Have yet to determine what bucket this goes in. label Sep 16, 2021
AR-May pushed a commit that referenced this issue Sep 20, 2021
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
@AR-May AR-May added the triaged label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: IntelliSense Issues with the XSD-schema driven code completion experience for MSBuild in Visual Studio. Partner request triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants