Skip to content

Commit

Permalink
Update error doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten committed Sep 23, 2023
1 parent 2180993 commit e17d149
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/rules/WinUIEx1001.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The member will always be null and should not be used. This API was there due to

|Item|Value|
|-|-|
|Category|MicrosoftCodeAnalysisCorrectness|
|Category|Usage|
|Enabled|True|
|Severity|Warning|
|CodeFix|False|
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/WinUIEx1002.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Dispatcher will always return null. It has been replaced by the DispatcherQu

|Item|Value|
|-|-|
|Category|MicrosoftCodeAnalysisCorrectness|
|Category|Usage|
|Enabled|True|
|Severity|Warning|
|CodeFix|False|
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<Authors>Morten Nielsen - https://xaml.dev</Authors>
<Company>Morten Nielsen - https://xaml.dev</Company>
<PackageIcon>logo.png</PackageIcon>
<Version>2.3.0</Version>
<PackageValidationBaselineVersion>2.2.0</PackageValidationBaselineVersion>
<Version>2.3.1</Version>
<PackageValidationBaselineVersion>2.3.0</PackageValidationBaselineVersion>
</PropertyGroup>

<ItemGroup Condition="'$(PackageId)'!=''">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class WinUIExAlwaysNullAnalyzer : DiagnosticAnalyzer
private static readonly LocalizableString Description1002 = new LocalizableResourceString(nameof(Resources.DispatcherDescription), Resources.ResourceManager, typeof(Resources));
private const string Category = "Usage";

private static readonly DiagnosticDescriptor AlwaysNullRule = new DiagnosticDescriptor(DiagnosticId1001, Title1001, MessageFormat1001, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description1001);
private static readonly DiagnosticDescriptor DispatcherRule = new DiagnosticDescriptor(DiagnosticId1002, Title1002, MessageFormat1002, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description1002);
private static readonly DiagnosticDescriptor AlwaysNullRule = new DiagnosticDescriptor(DiagnosticId1001, Title1001, MessageFormat1001, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description1001, helpLinkUri: "https://dotmorten.github.io/WinUIEx/rules/WinUIEx1001.html");
private static readonly DiagnosticDescriptor DispatcherRule = new DiagnosticDescriptor(DiagnosticId1002, Title1002, MessageFormat1002, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true, description: Description1002, helpLinkUri: "https://dotmorten.github.io/WinUIEx/rules/WinUIEx1002.html");

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get { return ImmutableArray.Create(AlwaysNullRule, DispatcherRule); } }

Expand Down
7 changes: 1 addition & 6 deletions src/WinUIEx/WinUIEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@
<PackageId>WinUIEx</PackageId>
<Product>WinUI Extensions</Product>
<PackageReleaseNotes>
- Added new TransparentTintBackdrop and CompositionBrushBackdrop classes to support transparent/tinted windows and customm backdrops (Issue #42).
- Add WindowExtensions.Move method (Issue #122).
- Add WindowState and WindowStateChanged properties to Window Manager to track minimize/maximize/restore (Issue #112).
- Improve persistance restore by ignoring display names (Issue #98).
- Added support for setting window opacity.
- `Window.CenterOnScreen()` no longer sets the Window to show. Call the `Window.ShowWindow()` extension to bring the window to the front. (Issue #132)
- Added analyzers for some non-functional APIs
</PackageReleaseNotes>
</PropertyGroup>

Expand Down

0 comments on commit e17d149

Please sign in to comment.