-
Notifications
You must be signed in to change notification settings - Fork 998
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11800 from dotnet/main
Merge main PRs into 10 branch
- Loading branch information
Showing
98 changed files
with
580 additions
and
469 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# List of WinForms Experimental Function Areas | ||
|
||
System.Windows.Forms.Analyzers analyzers and source generators are shipped inbox with Windows Desktop .NET SDK, and | ||
are automatically referenced for Window Forms .NET applications. | ||
|
||
| Diagnostic ID | Description | | ||
| :------------- | :---------- | | ||
| __`WFO5000`__ | Functionality around Visual Styling is experimental in .NET 9. | | ||
| __`WFO5001`__ | Functionality around Dark Mode Colors is experimental in .NET 9. | | ||
| __`WFO5002`__ | New ASync APIs for e.g. consuming Windows projected APIs, WebView2 or AI/LLM Libs are experimental in .NET 9. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# How to use System.Windows.Forms.Analyzers | ||
|
||
System.Windows.Forms.Analyzers analyzers and source generators are shipped inbox with Windows Desktop .NET SDK, and | ||
are automatically referenced for Window Forms .NET applications. | ||
|
||
## `AppManifestAnalyzer` | ||
|
||
`AppManifestAnalyzer` is automatically invoked when a Windows Forms application (`OutputType=Exe` or `OutputType=WinExe`) has a custom app.manifest. | ||
|
||
### [WFO0003](https://aka.ms/winforms-warnings/WFAC010): Unsupported high DPI configuration. | ||
|
||
Windows Forms applications should specify application DPI-awareness via the [application configuration](https://aka.ms/applicationconfiguration) or | ||
[`Application.SetHighDpiMode` API](https://docs.microsoft.com/dotnet/api/system.windows.forms.application.sethighdpimode). | ||
|
||
|Item|Value| | ||
|-|-| | ||
| Category | ApplicationConfiguration | | ||
| Enabled | True | | ||
| Severity | Warning | | ||
| CodeFix | False | | ||
--- | ||
|
||
## `MissingPropertySerializationConfiguration` | ||
|
||
`MissingPropertySerializationConfiguration` checks for missing `DesignerSerializationVisibilityAttribute` on properties of classes which are | ||
derived from `Control` and could potentially serialize design-time data by the designer without the user being aware of it. | ||
|
||
### [WFO1000](https://aka.ms/winforms-warnings/WFO1000): Missing property serialization configuration. | ||
|
||
Properties of classes derived from `Control` should have `DesignerSerializationVisibilityAttribute` | ||
set to `DesignerSerializationVisibility.Content` or `DesignerSerializationVisibility.Visible`. | ||
|
||
|Item|Value| | ||
|-|-| | ||
| Category | ApplicationConfiguration | | ||
| Enabled | True | | ||
| Severity | Warning | | ||
| CodeFix | False | | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# How to use System.Windows.Forms.Analyzers | ||
|
||
System.Windows.Forms.Analyzers analyzers and source generators are shipped inbox with Windows Desktop .NET SDK, and | ||
are automatically referenced for Window Forms .NET applications. | ||
|
||
## `AppManifestAnalyzer` | ||
|
||
`AppManifestAnalyzer` is automatically invoked when a Windows Forms application (`OutputType=Exe` or `OutputType=WinExe`) has a custom app.manifest. | ||
|
||
### [WFO0003](https://aka.ms/winforms-warnings/WFAC010): Unsupported high DPI configuration. | ||
|
||
Windows Forms applications should specify application DPI-awareness via the [application configuration](https://aka.ms/applicationconfiguration) or | ||
[`Application.SetHighDpiMode` API](https://docs.microsoft.com/dotnet/api/system.windows.forms.application.sethighdpimode). | ||
|
||
|Item|Value| | ||
|-|-| | ||
| Category | ApplicationConfiguration | | ||
| Enabled | True | | ||
| Severity | Warning | | ||
| CodeFix | False | | ||
--- | ||
|
||
## `MissingPropertySerializationConfiguration` | ||
|
||
`MissingPropertySerializationConfiguration` checks for missing `DesignerSerializationVisibilityAttribute` on properties of classes which are | ||
derived from `Control` and could potentially serialize design-time data by the designer without the user being aware of it. | ||
|
||
### [WFO1000](https://aka.ms/winforms-warnings/WFO1000): Missing property serialization configuration. | ||
|
||
Properties of classes derived from `Control` should have `DesignerSerializationVisibilityAttribute` | ||
set to `DesignerSerializationVisibility.Content` or `DesignerSerializationVisibility.Visible`. | ||
|
||
|Item|Value| | ||
|-|-| | ||
| Category | ApplicationConfiguration | | ||
| Enabled | True | | ||
| Severity | Warning | | ||
| CodeFix | False | | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
https://aka.ms/WfoGenManifest https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms.Analyzers/AppManifestAnalyzer.Help.md | ||
https://aka.ms/WfoExperimental https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms.Analyzers/Experimental.Help.md | ||
|
||
https://aka.ms/WfoCsAppConfig https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms.Analyzers.CSharp/ApplicationConfigurationGenerator.Help.md | ||
https://aka.ms/WfoCsAnalyzers https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms.Analyzers.CSharp/WinFormsCSharpAnalyzers.Help.md | ||
|
||
https://aka.ms/WfoVbAnalyzers https://github.com/dotnet/winforms/blob/main/src/System.Windows.Forms.Analyzers.VisualBasic/WinFormsVisualBasicAnalyzers.Help.md |
Oops, something went wrong.