diff --git a/.editorconfig b/.editorconfig index 38c62724d..301fb13a8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -50,10 +50,10 @@ file_header_template = This Source Code Form is subject to the terms of the MIT #### .NET Coding Conventions #### # this. and Me. preferences -dotnet_style_qualification_for_event = false:warning -dotnet_style_qualification_for_field = false:warning -dotnet_style_qualification_for_method = false:warning -dotnet_style_qualification_for_property = false:warning +dotnet_style_qualification_for_event = false:silent +dotnet_style_qualification_for_field = false:silent +dotnet_style_qualification_for_method = false:silent +dotnet_style_qualification_for_property = false:silent # Language keywords vs BCL types preferences dotnet_style_predefined_type_for_locals_parameters_members = true:warning @@ -95,8 +95,8 @@ dotnet_style_readonly_field = true:warning # var preferences csharp_style_var_elsewhere = false:warning -csharp_style_var_for_built_in_types = false:warning -csharp_style_var_when_type_is_apparent = false:warning +csharp_style_var_for_built_in_types = false:none +csharp_style_var_when_type_is_apparent = false:none # Expression-bodied members csharp_style_expression_bodied_accessors = false:silent @@ -388,7 +388,7 @@ dotnet_diagnostic.SA1633.severity = none dotnet_diagnostic.SA1634.severity = none dotnet_diagnostic.SA1652.severity = none -dotnet_diagnostic.IDE0009.severity = none + # Additional Stylecop Analyzers dotnet_diagnostic.SA1111.severity = none @@ -397,3 +397,19 @@ dotnet_diagnostic.SA1204.severity = none dotnet_diagnostic.SA1208.severity = none dotnet_diagnostic.SA1518.severity = none dotnet_diagnostic.SA1615.severity = none +dotnet_diagnostic.SA1502.severity = none +dotnet_diagnostic.SA1010.severity = none # Opening square brackets should not be preceded by a space + # conflicts with collection expressions and IDE0028 + +# Suppress some ValueConverter warnings +dotnet_diagnostic.WPF0073.severity = none # Add ValueConversion attribute (unknown types) +dotnet_diagnostic.WPF0071.severity = none # Add ValueConversion attribute +dotnet_diagnostic.WPF0070.severity = none # Add default field to converter + +# Suppress some IDE warnings +dotnet_diagnostic.IDE0290.severity = none # Use primary constructor +dotnet_diagnostic.CS1591.severity = none # Missing XML comment for publicly visible type or member + # 15000+ warnings in the solution +dotnet_diagnostic.CA1510.severity = none # Use ArgumentNullException throw helper + # doesn't work with older versions of .NET + \ No newline at end of file diff --git a/.github/labeler.yml b/.github/labeler.yml index f1ce31c7d..fe74caf9b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -36,6 +36,10 @@ themes: - changed-files: - any-glob-to-any-file: 'src/Wpf.Ui/Appearance/**' +titlebar: +- changed-files: + - any-glob-to-any-file: 'src/Wpf.Ui/Controls/TitleBar/**' + tray: - changed-files: - any-glob-to-any-file: 'src/Wpf.Ui.Tray/**' diff --git a/.github/workflows/wpf-ui-cd-docs.yaml b/.github/workflows/wpf-ui-cd-docs.yaml index a1abfed1c..f6b39b482 100644 --- a/.github/workflows/wpf-ui-cd-docs.yaml +++ b/.github/workflows/wpf-ui-cd-docs.yaml @@ -28,7 +28,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Use Node.js 18.x uses: actions/setup-node@v4 with: diff --git a/.github/workflows/wpf-ui-cd-extension.yaml b/.github/workflows/wpf-ui-cd-extension.yaml index ac179799e..8ae8bd31e 100644 --- a/.github/workflows/wpf-ui-cd-extension.yaml +++ b/.github/workflows/wpf-ui-cd-extension.yaml @@ -11,7 +11,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 - - uses: microsoft/setup-msbuild@v1.3 + - uses: microsoft/setup-msbuild@v2 with: msbuild-architecture: x64 - uses: nuget/setup-nuget@v2 diff --git a/.github/workflows/wpf-ui-cd-nuget.yaml b/.github/workflows/wpf-ui-cd-nuget.yaml index 20c957228..9fd8c41e7 100644 --- a/.github/workflows/wpf-ui-cd-nuget.yaml +++ b/.github/workflows/wpf-ui-cd-nuget.yaml @@ -11,7 +11,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 - - uses: microsoft/setup-msbuild@v1.3 + - uses: microsoft/setup-msbuild@v2 with: msbuild-architecture: x64 - uses: nuget/setup-nuget@v2 @@ -26,10 +26,10 @@ jobs: run: dotnet restore - name: Build - run: dotnet build src\Wpf.Ui\Wpf.Ui.csproj --configuration Release --no-restore + run: dotnet build src\Wpf.Ui\Wpf.Ui.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true - name: Build - run: dotnet build src\Wpf.Ui.Tray\Wpf.Ui.Tray.csproj --configuration Release --no-restore + run: dotnet build src\Wpf.Ui.Tray\Wpf.Ui.Tray.csproj --configuration Release --no-restore -p:SourceLinkEnabled=true - name: Publish the package to NuGet.org run: nuget push **\*.nupkg -NonInteractive -SkipDuplicate -Source 'https://api.nuget.org/v3/index.json' diff --git a/.github/workflows/wpf-ui-pr-validator.yaml b/.github/workflows/wpf-ui-pr-validator.yaml index c99cd6617..2d06c9322 100644 --- a/.github/workflows/wpf-ui-pr-validator.yaml +++ b/.github/workflows/wpf-ui-pr-validator.yaml @@ -13,7 +13,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v4 - - uses: microsoft/setup-msbuild@v1.3 + - uses: microsoft/setup-msbuild@v2 with: msbuild-architecture: x64 - uses: nuget/setup-nuget@v2 diff --git a/Directory.Build.props b/Directory.Build.props index a46c1bf6c..c6aabc6b9 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,27 +1,26 @@ - - 3.0.3 + 3.0.4 12.0 true - - lepo.co - lepo.co - Copyright (C) 2021-2024 Leszek Pomianowski and WPF UI Contributors - - net8.0-windows;net7.0-windows;net6.0-windows;net481;net472;net462 + enable + enable $(Version) + lepo.co + lepo.co + Copyright (C) 2021-2024 Leszek Pomianowski and WPF UI Contributors true MIT https://raw.githubusercontent.com/lepoco/wpfui/main/LICENSE https://github.com/lepoco/wpfui + https://github.com/lepoco/wpfui/releases https://github.com/lepoco/wpfui main git @@ -30,6 +29,10 @@ README.md + + true + + true moderate @@ -52,4 +55,20 @@ + + + + + true + + true + + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + + + + + + + diff --git a/Directory.Build.targets b/Directory.Build.targets index 148d27752..c9fb730d2 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,16 +1,16 @@ - - - - - - - - - \ No newline at end of file + + + + + + + diff --git a/LICENSE b/LICENSE index 2f579bda1..75e41fa10 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021-2023 Leszek Pomianowski and WPF UI Contributors. https://dev.lepo.co/ +Copyright (c) 2021-2024 Leszek Pomianowski and WPF UI Contributors. https://dev.lepo.co/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/docfx.json b/docs/docfx.json index ceaecca16..8a6b45cf1 100644 --- a/docs/docfx.json +++ b/docs/docfx.json @@ -40,7 +40,7 @@ "_appName": "WPF UI", "_appFaviconPath": "images/favicon.ico", "_appLogoPath": "images/wpfui.png", - "_appFooter": "Made with docfx, ChatGPT and DeepL | Copyright © 2023 lepo.co" + "_appFooter": "Made with docfx, ChatGPT and DeepL | Copyright © 2024 lepo.co" }, "dest": "_site", "template": ["default", "templates/wpfui"], diff --git a/docs/templates/wpfui/layout/_master.tmpl b/docs/templates/wpfui/layout/_master.tmpl index d58da696a..4a8f59273 100644 --- a/docs/templates/wpfui/layout/_master.tmpl +++ b/docs/templates/wpfui/layout/_master.tmpl @@ -134,7 +134,7 @@