From 4313ad7f69bb6b90e0436fec71712e5c627c69ae Mon Sep 17 00:00:00 2001
From: michael-hawker <24302614+michael-hawker@users.noreply.github.com>
Date: Thu, 15 Dec 2022 00:50:32 -0800
Subject: [PATCH] Updates to VS 2022 Build Process
Update dependencies
Removes Cake call from azurepipeline.yml (after attempting to upgrade, will remove files in separate commit)
Uses dotnet/msbuild to build and run tests in Azure DevOps directly
Moves Stylecop to .editorconfig
Moves to .NET 6 for build and targets
Fixes build configuration for CI to only build required libraries and not samples
Renames Net5Windows example to NetWindows
---
.editorconfig | 254 ++++++++++++++++--
...ommunityToolkit.Authentication.Msal.csproj | 10 +-
.../MsalProvider.cs | 2 +-
...CommunityToolkit.Authentication.Uwp.csproj | 6 +-
.../CommunityToolkit.Authentication.csproj | 3 -
.../CommunityToolkit.Graph.Uwp.csproj | 8 +-
.../CommunityToolkit.Graph.csproj | 4 +-
Directory.Build.props | 10 +-
README.md | 4 +-
SampleTest/SampleTest.csproj | 22 +-
.../GraphPresenter/OneDriveSample.xaml.cs | 4 +-
.../ManualGraphRequestSample.csproj | 16 +-
.../UwpMsalProviderSample.csproj | 14 +-
.../UwpWindowsProviderSample.csproj | 14 +-
.../App.xaml | 4 +-
.../App.xaml.cs | 2 +-
.../AssemblyInfo.cs | 0
.../CacheConfig.cs | 2 +-
.../LoginButton.xaml | 4 +-
.../LoginButton.xaml.cs | 2 +-
.../MainWindow.xaml | 4 +-
.../MainWindow.xaml.cs | 2 +-
.../README.md | 2 +-
.../WpfNetWindowsMsalProviderSample.csproj} | 6 +-
Toolkit.ruleset | 87 ------
UnitTests/UnitTests.UWP/UnitTests.UWP.csproj | 30 +--
Windows-Toolkit-Graph-Controls.sln | 42 +--
azure-pipelines.yml | 37 ++-
build/Windows.Toolkit.Common.props | 4 +-
build/build.cake | 54 ++--
build/build.ps1 | 8 +-
build/tools/packages.config | 2 +-
global.json | 8 +-
stylecop.json | 8 -
version.json | 2 +-
35 files changed, 383 insertions(+), 298 deletions(-)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/App.xaml (66%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/App.xaml.cs (97%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/AssemblyInfo.cs (100%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/CacheConfig.cs (96%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/LoginButton.xaml (79%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/LoginButton.xaml.cs (97%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/MainWindow.xaml (78%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/MainWindow.xaml.cs (96%)
rename Samples/{WpfNet5WindowsMsalProviderSample => WpfNetWindowsMsalProviderSample}/README.md (95%)
rename Samples/{WpfNet5WindowsMsalProviderSample/WpfNet5WindowsMsalProviderSample.csproj => WpfNetWindowsMsalProviderSample/WpfNetWindowsMsalProviderSample.csproj} (81%)
delete mode 100644 Toolkit.ruleset
delete mode 100644 stylecop.json
diff --git a/.editorconfig b/.editorconfig
index 9225e97..67435fc 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,19 +1,87 @@
# Remove the line below if you want to inherit .editorconfig settings from higher directories
root = true
-# C# files
-[*.cs]
+# Generated code
+[*{_AssemblyInfo.cs,.g.cs}]
+generated_code = true
+
+# All files
+[*]
+
+# .NET Foundation Header
+file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license.\nSee the LICENSE file in the project root for more information.
#### Core EditorConfig Options ####
+# Encoding
+charset = utf-8
+
# Indentation and spacing
+tab_width = 4
indent_size = 4
indent_style = space
-tab_width = 4
# New line preferences
end_of_line = crlf
-insert_final_newline = false
+trim_trailing_whitespace = true
+insert_final_newline = true
+dotnet_style_operator_placement_when_wrapping = beginning_of_line
+dotnet_style_coalesce_expression = true:suggestion
+dotnet_style_null_propagation = true:suggestion
+dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
+dotnet_style_prefer_auto_properties = true:silent
+dotnet_style_object_initializer = true:suggestion
+dotnet_style_collection_initializer = true:suggestion
+dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
+dotnet_style_prefer_conditional_expression_over_assignment = true:silent
+dotnet_style_prefer_conditional_expression_over_return = true:silent
+dotnet_style_explicit_tuple_names = true:suggestion
+dotnet_style_prefer_inferred_tuple_names = true:suggestion
+dotnet_style_prefer_compound_assignment = true:suggestion
+dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
+dotnet_style_namespace_match_folder = true:suggestion
+dotnet_style_prefer_simplified_interpolation = true:suggestion
+dotnet_style_readonly_field = true:suggestion
+dotnet_style_predefined_type_for_locals_parameters_members = true:silent
+dotnet_style_predefined_type_for_member_access = true:silent
+dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
+dotnet_style_allow_multiple_blank_lines_experimental = true:silent
+dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
+dotnet_code_quality_unused_parameters = all:suggestion
+dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
+dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
+dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
+dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
+dotnet_style_qualification_for_field = true:silent
+dotnet_style_qualification_for_property = true:silent
+dotnet_style_qualification_for_method = true:silent
+dotnet_style_qualification_for_event = true:silent
+
+#### Build files ####
+
+# Solution files
+[*.{sln,slnx}]
+tab_width = 4
+indent_size = 4
+indent_style = tab
+
+# Configuration files
+[*.{json,xml,yml,config,runsettings}]
+indent_size = 2
+
+# MSBuild files
+[*.{slnf,props,targets,projitems,csproj,shproj}]
+indent_size = 2
+
+#### Source files ####
+
+# Markdown files
+[*.md]
+indent_size = 2
+insert_final_newline = true
+
+# C# files
+[*.cs]
#### .NET Coding Conventions ####
@@ -103,8 +171,8 @@ csharp_new_line_between_query_expression_clauses = true
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
-csharp_indent_case_contents_when_block = true
-csharp_indent_labels = one_less_than_current
+csharp_indent_case_contents_when_block = false
+csharp_indent_labels = no_change
csharp_indent_switch_labels = true
# Space preferences
@@ -135,8 +203,8 @@ csharp_space_between_square_brackets = false
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true
-
# Naming Symbols
+
# constant_fields - Define constant fields
dotnet_naming_symbols.constant_fields.applicable_kinds = field
dotnet_naming_symbols.constant_fields.required_modifiers = const
@@ -168,6 +236,7 @@ dotnet_naming_symbols.non_interface_types.applicable_kinds
dotnet_naming_symbols.interface_types.applicable_kinds = interface
# Naming Styles
+
# camel_case - Define the camelCase style
dotnet_naming_style.camel_case.capitalization = camel_case
# pascal_case - Define the Pascal_case style
@@ -181,9 +250,9 @@ dotnet_naming_style.prefix_interface_interface_with_i.required_prefix
# Naming Rules
# Async
-dotnet_naming_rule.async_methods_end_in_async.severity = silent
+dotnet_naming_rule.async_methods_end_in_async.severity = silent
dotnet_naming_rule.async_methods_end_in_async.symbols = any_async_methods
-dotnet_naming_rule.async_methods_end_in_async.style = end_in_async
+dotnet_naming_rule.async_methods_end_in_async.style = end_in_async
dotnet_naming_symbols.any_async_methods.applicable_kinds = method
dotnet_naming_symbols.any_async_methods.applicable_accessibilities = *
@@ -193,46 +262,173 @@ dotnet_naming_style.end_in_async.required_suffix
dotnet_naming_style.end_in_async.capitalization = pascal_case
# Constant fields must be PascalCase
-dotnet_naming_rule.constant_fields_must_be_pascal_case.severity = silent
+dotnet_naming_rule.constant_fields_must_be_pascal_case.severity = silent
dotnet_naming_rule.constant_fields_must_be_pascal_case.symbols = constant_fields
-dotnet_naming_rule.constant_fields_must_be_pascal_case.style = pascal_case
+dotnet_naming_rule.constant_fields_must_be_pascal_case.style = pascal_case
# Public, internal and protected readonly fields must be PascalCase
-dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.severity = silent
+dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.severity = silent
dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.symbols = non_private_readonly_fields
-dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.style = pascal_case
+dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.style = pascal_case
# Static readonly fields must be PascalCase
-dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.severity = silent
+dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.severity = silent
dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.symbols = static_readonly_fields
-dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.style = pascal_case
+dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.style = pascal_case
# Private readonly fields must be camelCase
-dotnet_naming_rule.private_readonly_fields_must_be_camel_case.severity = silent
+dotnet_naming_rule.private_readonly_fields_must_be_camel_case.severity = silent
dotnet_naming_rule.private_readonly_fields_must_be_camel_case.symbols = private_readonly_fields
-dotnet_naming_rule.private_readonly_fields_must_be_camel_case.style = camel_case
+dotnet_naming_rule.private_readonly_fields_must_be_camel_case.style = camel_case
# Public and internal fields must be PascalCase
-dotnet_naming_rule.public_internal_protected_fields_must_be_pascal_case.severity = silent
+dotnet_naming_rule.public_internal_protected_fields_must_be_pascal_case.severity = silent
dotnet_naming_rule.public_internal_protected_fields_must_be_pascal_case.symbols = public_internal_protected_fields
-dotnet_naming_rule.public_internal_protected_fields_must_be_pascal_case.style = pascal_case
+dotnet_naming_rule.public_internal_protected_fields_must_be_pascal_case.style = pascal_case
# Private and protected fields must be camelCase
-dotnet_naming_rule.private_fields_must_be_camel_case.severity = silent
+dotnet_naming_rule.private_fields_must_be_camel_case.severity = silent
dotnet_naming_rule.private_fields_must_be_camel_case.symbols = private_protected_fields
-dotnet_naming_rule.private_fields_must_be_camel_case.style = prefix_private_field_with_underscore
+dotnet_naming_rule.private_fields_must_be_camel_case.style = prefix_private_field_with_underscore
# Public members must be capitalized
-dotnet_naming_rule.public_members_must_be_capitalized.severity = silent
+dotnet_naming_rule.public_members_must_be_capitalized.severity = silent
dotnet_naming_rule.public_members_must_be_capitalized.symbols = public_symbols
-dotnet_naming_rule.public_members_must_be_capitalized.style = first_upper
+dotnet_naming_rule.public_members_must_be_capitalized.style = first_upper
# Parameters must be camelCase
-dotnet_naming_rule.parameters_must_be_camel_case.severity = silent
+dotnet_naming_rule.parameters_must_be_camel_case.severity = silent
dotnet_naming_rule.parameters_must_be_camel_case.symbols = parameters
-dotnet_naming_rule.parameters_must_be_camel_case.style = camel_case
+dotnet_naming_rule.parameters_must_be_camel_case.style = camel_case
# Class, struct, enum and delegates must be PascalCase
-dotnet_naming_rule.non_interface_types_must_be_pascal_case.severity = silent
+dotnet_naming_rule.non_interface_types_must_be_pascal_case.severity = silent
dotnet_naming_rule.non_interface_types_must_be_pascal_case.symbols = non_interface_types
-dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case
+dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case
# Interfaces must be PascalCase and start with an 'I'
-dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = silent
+dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = silent
dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types
-dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i
+dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i
# prefix_private_field_with_underscore - Private fields must be prefixed with _
dotnet_naming_style.prefix_private_field_with_underscore.capitalization = camel_case
dotnet_naming_style.prefix_private_field_with_underscore.required_prefix = _
+# .NET Code Analysis
+
+dotnet_diagnostic.CA1001.severity = warning
+dotnet_diagnostic.CA1009.severity = warning
+dotnet_diagnostic.CA1016.severity = warning
+dotnet_diagnostic.CA1033.severity = warning
+dotnet_diagnostic.CA1049.severity = warning
+dotnet_diagnostic.CA1060.severity = warning
+dotnet_diagnostic.CA1061.severity = warning
+dotnet_diagnostic.CA1063.severity = warning
+dotnet_diagnostic.CA1065.severity = warning
+dotnet_diagnostic.CA1301.severity = warning
+dotnet_diagnostic.CA1400.severity = warning
+dotnet_diagnostic.CA1401.severity = warning
+dotnet_diagnostic.CA1403.severity = warning
+dotnet_diagnostic.CA1404.severity = warning
+dotnet_diagnostic.CA1405.severity = warning
+dotnet_diagnostic.CA1410.severity = warning
+dotnet_diagnostic.CA1415.severity = warning
+dotnet_diagnostic.CA1821.severity = warning
+dotnet_diagnostic.CA1900.severity = warning
+dotnet_diagnostic.CA1901.severity = warning
+dotnet_diagnostic.CA2002.severity = warning
+dotnet_diagnostic.CA2100.severity = warning
+dotnet_diagnostic.CA2101.severity = warning
+dotnet_diagnostic.CA2108.severity = warning
+dotnet_diagnostic.CA2111.severity = warning
+dotnet_diagnostic.CA2112.severity = warning
+dotnet_diagnostic.CA2114.severity = warning
+dotnet_diagnostic.CA2116.severity = warning
+dotnet_diagnostic.CA2117.severity = warning
+dotnet_diagnostic.CA2122.severity = warning
+dotnet_diagnostic.CA2123.severity = warning
+dotnet_diagnostic.CA2124.severity = warning
+dotnet_diagnostic.CA2126.severity = warning
+dotnet_diagnostic.CA2131.severity = warning
+dotnet_diagnostic.CA2132.severity = warning
+dotnet_diagnostic.CA2133.severity = warning
+dotnet_diagnostic.CA2134.severity = warning
+dotnet_diagnostic.CA2137.severity = warning
+dotnet_diagnostic.CA2138.severity = warning
+dotnet_diagnostic.CA2140.severity = warning
+dotnet_diagnostic.CA2141.severity = warning
+dotnet_diagnostic.CA2146.severity = warning
+dotnet_diagnostic.CA2147.severity = warning
+dotnet_diagnostic.CA2149.severity = warning
+dotnet_diagnostic.CA2200.severity = warning
+dotnet_diagnostic.CA2202.severity = warning
+dotnet_diagnostic.CA2207.severity = warning
+dotnet_diagnostic.CA2212.severity = warning
+dotnet_diagnostic.CA2213.severity = warning
+dotnet_diagnostic.CA2214.severity = warning
+dotnet_diagnostic.CA2216.severity = warning
+dotnet_diagnostic.CA2220.severity = warning
+dotnet_diagnostic.CA2229.severity = warning
+dotnet_diagnostic.CA2231.severity = warning
+dotnet_diagnostic.CA2232.severity = warning
+dotnet_diagnostic.CA2235.severity = warning
+dotnet_diagnostic.CA2236.severity = warning
+dotnet_diagnostic.CA2237.severity = warning
+dotnet_diagnostic.CA2238.severity = warning
+dotnet_diagnostic.CA2240.severity = warning
+dotnet_diagnostic.CA2241.severity = warning
+dotnet_diagnostic.CA2242.severity = warning
+
+# StyleCop Code Analysis
+
+# Closing parenthesis should be spaced correctly: "foo()!"
+dotnet_diagnostic.SA1009.severity = none
+
+# Hide warnings when using the new() expression from C# 9.
+dotnet_diagnostic.SA1000.severity = none
+
+dotnet_diagnostic.SA1011.severity = none
+dotnet_diagnostic.SA1101.severity = none
+
+# Hide warnings when accessing properties without "this".
+dotnet_diagnostic.SA1101.severity = none
+dotnet_diagnostic.SA1118.severity = none
+dotnet_diagnostic.SA1200.severity = none
+dotnet_diagnostic.SA1201.severity = none
+dotnet_diagnostic.SA1202.severity = none
+dotnet_diagnostic.SA1309.severity = none
+dotnet_diagnostic.SA1310.severity = none
+
+# Hide warnings for record parameters.
+dotnet_diagnostic.SA1313.severity = none
+
+# TypeParameterNamesMustBeginWithT: We do have a few templates that don't start with T. We need to double check that changing this is not a breaking change. If not, we can re-enable this.
+dotnet_diagnostic.SA1314.severity = none
+
+# UseTrailingCommasInMultiLineInitializers: This would also mean a lot of changes at the end of all multiline initializers. It's also debatable if we want this or not.
+dotnet_diagnostic.SA1413.severity = none
+
+dotnet_diagnostic.SA1600.severity = none
+dotnet_diagnostic.SA1602.severity = none
+dotnet_diagnostic.SA1611.severity = none
+
+# DocumentationTextMustEndWithAPeriod: Let's enable this rule back when we shift to WinUI3 (v8.x). If we do it now, it would mean more than 400 file changes.
+dotnet_diagnostic.SA1629.severity = none
+
+dotnet_diagnostic.SA1633.severity = none
+dotnet_diagnostic.SA1634.severity = none
+dotnet_diagnostic.SA1652.severity = none
+csharp_using_directive_placement = outside_namespace:silent
+csharp_prefer_simple_using_statement = true:suggestion
+csharp_style_namespace_declarations = file_scoped:warning
+csharp_style_expression_bodied_local_functions = false:silent
+csharp_style_prefer_null_check_over_type_check = true:suggestion
+csharp_style_prefer_local_over_anonymous_function = true:suggestion
+csharp_style_prefer_index_operator = true:suggestion
+csharp_style_prefer_range_operator = true:suggestion
+csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
+csharp_style_prefer_tuple_swap = true:suggestion
+csharp_style_unused_value_assignment_preference = discard_variable:suggestion
+csharp_style_unused_value_expression_statement_preference = discard_variable:silent
+csharp_prefer_static_local_function = true:suggestion
+csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
+csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
+csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
+csharp_style_prefer_pattern_matching = true:silent
+csharp_style_prefer_switch_expression = true:suggestion
+csharp_style_prefer_not_pattern = true:suggestion
+csharp_style_prefer_extended_property_pattern = true:suggestion
+
+# Require file header
+dotnet_diagnostic.IDE0073.severity = warning
diff --git a/CommunityToolkit.Authentication.Msal/CommunityToolkit.Authentication.Msal.csproj b/CommunityToolkit.Authentication.Msal/CommunityToolkit.Authentication.Msal.csproj
index 501d753..caf51b9 100644
--- a/CommunityToolkit.Authentication.Msal/CommunityToolkit.Authentication.Msal.csproj
+++ b/CommunityToolkit.Authentication.Msal/CommunityToolkit.Authentication.Msal.csproj
@@ -1,7 +1,7 @@
-
+
- netstandard2.0;uap10.0;net5.0-windows10.0.17763.0;netcoreapp3.1
+ netstandard2.0;uap10.0.17763;net6.0-windows10.0.17763.0;netcoreapp3.1
10.0.17763.0
7
@@ -16,12 +16,12 @@
-
-
+
+
-
+
diff --git a/CommunityToolkit.Authentication.Msal/MsalProvider.cs b/CommunityToolkit.Authentication.Msal/MsalProvider.cs
index 3adf77a..d9a4134 100644
--- a/CommunityToolkit.Authentication.Msal/MsalProvider.cs
+++ b/CommunityToolkit.Authentication.Msal/MsalProvider.cs
@@ -202,7 +202,7 @@ protected IPublicClientApplication CreatePublicClientApplication(string clientId
clientBuilder = clientBuilder.WithAuthority(AzureCloudInstance.AzurePublic, authority);
}
-#if WINDOWS_UWP || NET5_0_WINDOWS10_0_17763_0
+#if WINDOWS_UWP || NET6_0_WINDOWS10_0_17763_0
clientBuilder = clientBuilder.WithBroker();
#elif NETCOREAPP3_1
clientBuilder = clientBuilder.WithWindowsBroker();
diff --git a/CommunityToolkit.Authentication.Uwp/CommunityToolkit.Authentication.Uwp.csproj b/CommunityToolkit.Authentication.Uwp/CommunityToolkit.Authentication.Uwp.csproj
index 5c68901..60c5a31 100644
--- a/CommunityToolkit.Authentication.Uwp/CommunityToolkit.Authentication.Uwp.csproj
+++ b/CommunityToolkit.Authentication.Uwp/CommunityToolkit.Authentication.Uwp.csproj
@@ -1,7 +1,7 @@
-
+
- uap10.0.17134
+ uap10.0.17763
Windows Community Toolkit Graph Uwp Authentication Provider
This library provides an authentication provider based on the native Windows dialogues.
@@ -10,7 +10,7 @@
- WindowsProvider: An authentication provider based on the native AccountsSettingsPane in Windows.
UWP Community Toolkit Provider Authentication Auth Windows
- 9.0
+ 10.0
diff --git a/CommunityToolkit.Authentication/CommunityToolkit.Authentication.csproj b/CommunityToolkit.Authentication/CommunityToolkit.Authentication.csproj
index cd25959..1c8f624 100644
--- a/CommunityToolkit.Authentication/CommunityToolkit.Authentication.csproj
+++ b/CommunityToolkit.Authentication/CommunityToolkit.Authentication.csproj
@@ -13,7 +13,4 @@
Community Toolkit Provider Authentication Auth
-
-
-
diff --git a/CommunityToolkit.Graph.Uwp/CommunityToolkit.Graph.Uwp.csproj b/CommunityToolkit.Graph.Uwp/CommunityToolkit.Graph.Uwp.csproj
index cf3fdfd..90016f9 100644
--- a/CommunityToolkit.Graph.Uwp/CommunityToolkit.Graph.Uwp.csproj
+++ b/CommunityToolkit.Graph.Uwp/CommunityToolkit.Graph.Uwp.csproj
@@ -1,4 +1,4 @@
-
+
uap10.0.17763
@@ -19,12 +19,12 @@
- ProviderStateTrigger: StateTrigger for reacting to changes in the global authentcation provider.
UWP Community Toolkit Windows Controls Microsoft Graph Login Person PeoplePicker Presenter
- 9.0
+ 10.0
-
-
+
+
diff --git a/CommunityToolkit.Graph/CommunityToolkit.Graph.csproj b/CommunityToolkit.Graph/CommunityToolkit.Graph.csproj
index 4eaf7b1..1feb066 100644
--- a/CommunityToolkit.Graph/CommunityToolkit.Graph.csproj
+++ b/CommunityToolkit.Graph/CommunityToolkit.Graph.csproj
@@ -1,4 +1,4 @@
-
+
netstandard2.0
@@ -16,7 +16,7 @@
- UserExtensionStorageHelper: A helper for interacting with open extensions on the Graph User to store data in key/value pairs.
Windows Community Toolkit Microsoft Graph Provider Extensions Helpers Roaming Settings
- 9.0
+ 10.0
diff --git a/Directory.Build.props b/Directory.Build.props
index 08755e5..b5bad92 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -37,11 +37,7 @@
-
-
-
-
-
+
@@ -55,9 +51,9 @@
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb
-
+
-
\ No newline at end of file
+
diff --git a/README.md b/README.md
index a8adcf4..10cd424 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ If you need similar controls for the Web, please use the [Microsoft Graph Toolki
| Package | Min Supported |
|--|--|
| `CommunityToolkit.Authentication` | NetStandard 2.0 |
-| `CommunityToolkit.Authentication.Msal` | NetStandard 2.0, UWP, .NET 5, .NET 5 Windows 10.0.17763.0, .NET Core 3.1 |
+| `CommunityToolkit.Authentication.Msal` | NetStandard 2.0, UWP, .NET 6, .NET 6 Windows 10.0.17763.0, .NET Core 3.1 |
| `CommunityToolkit.Authentication.Uwp` | UWP Windows 10.0.17134.0 |
| `CommunityTookit.Graph` | NetStandard 2.0 |
| `CommunityToolkit.Graph.Uwp` | UWP Windows 10.0.17763.0 |
@@ -23,7 +23,7 @@ Check out our samples for getting started with authentication providers and maki
- [UwpWindowsProviderSample](./Samples/UwpWindowsProviderSample)
- [UwpMsalProviderSample](./Samples/UwpMsalProviderSample)
- [WpfNetCoreMsalProviderSample](./Samples/WpfNetCoreMsalProviderSample)
-- [WpfNetMsalProviderSample](./Samples/WpfNet5WindowsMsalProviderSample)
+- [WpfNetMsalProviderSample](./Samples/WpfNetWindowsMsalProviderSample)
- [ManualGraphRequestSample](./Samples/ManualGraphRequestSample)
### Contoso Notes Sample
diff --git a/SampleTest/SampleTest.csproj b/SampleTest/SampleTest.csproj
index 309669f..0d90b7c 100644
--- a/SampleTest/SampleTest.csproj
+++ b/SampleTest/SampleTest.csproj
@@ -1,4 +1,4 @@
-
+
@@ -11,9 +11,9 @@
SampleTest
en-US
UAP
- 10.0.19041.0
+ 10.0.22621.0
10.0.17763.0
- 14
+ 17
512
{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
true
@@ -208,16 +208,16 @@
- 4.5.0
+ 4.48.0
- 6.2.12
+ 6.2.13
-
- 7.1.0
+
+ 8.0.0
- 7.1.0
+ 7.1.3
@@ -242,8 +242,8 @@
CommunityToolkit.Graph.Uwp
-
- 14.0
+
+ 17.0
bin\x86\CI\
@@ -309,4 +309,4 @@
-->
-
\ No newline at end of file
+
diff --git a/SampleTest/Samples/GraphPresenter/OneDriveSample.xaml.cs b/SampleTest/Samples/GraphPresenter/OneDriveSample.xaml.cs
index 35e56ce..c913633 100644
--- a/SampleTest/Samples/GraphPresenter/OneDriveSample.xaml.cs
+++ b/SampleTest/Samples/GraphPresenter/OneDriveSample.xaml.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@@ -8,7 +8,7 @@
using CommunityToolkit.Graph.Extensions;
using Microsoft.Graph;
using Microsoft.Toolkit;
-using Microsoft.Toolkit.Mvvm.ComponentModel;
+using CommunityToolkit.Mvvm.ComponentModel;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Data;
diff --git a/Samples/ManualGraphRequestSample/ManualGraphRequestSample.csproj b/Samples/ManualGraphRequestSample/ManualGraphRequestSample.csproj
index ab65af2..779b357 100644
--- a/Samples/ManualGraphRequestSample/ManualGraphRequestSample.csproj
+++ b/Samples/ManualGraphRequestSample/ManualGraphRequestSample.csproj
@@ -1,4 +1,4 @@
-
+
@@ -11,9 +11,9 @@
ManualGraphRequestSample
en-US
UAP
- 10.0.19041.0
+ 10.0.22621.0
10.0.17763.0
- 14
+ 17
512
{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
true
@@ -152,10 +152,10 @@
- 6.2.12
+ 6.2.13
- 13.0.1
+ 13.0.2
@@ -168,8 +168,8 @@
CommunityToolkit.Authentication
-
- 14.0
+
+ 17.0
-
\ No newline at end of file
+
diff --git a/Samples/UwpMsalProviderSample/UwpMsalProviderSample.csproj b/Samples/UwpMsalProviderSample/UwpMsalProviderSample.csproj
index f88ac03..88a5399 100644
--- a/Samples/UwpMsalProviderSample/UwpMsalProviderSample.csproj
+++ b/Samples/UwpMsalProviderSample/UwpMsalProviderSample.csproj
@@ -1,4 +1,4 @@
-
+
@@ -11,9 +11,9 @@
UwpMsalProviderSample
en-US
UAP
- 10.0.19041.0
+ 10.0.22621.0
10.0.17763.0
- 14
+ 17
512
{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
true
@@ -151,7 +151,7 @@
- 6.2.12
+ 6.2.13
@@ -175,8 +175,8 @@
-
- 14.0
+
+ 17.0
-
\ No newline at end of file
+
diff --git a/Samples/UwpWindowsProviderSample/UwpWindowsProviderSample.csproj b/Samples/UwpWindowsProviderSample/UwpWindowsProviderSample.csproj
index b29ef07..e9b9e1f 100644
--- a/Samples/UwpWindowsProviderSample/UwpWindowsProviderSample.csproj
+++ b/Samples/UwpWindowsProviderSample/UwpWindowsProviderSample.csproj
@@ -1,4 +1,4 @@
-
+
@@ -11,9 +11,9 @@
UwpAuthenticationSample
en-US
UAP
- 10.0.19041.0
+ 10.0.22621.0
10.0.17763.0
- 14
+ 17
512
{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
true
@@ -158,7 +158,7 @@
- 6.2.12
+ 6.2.13
@@ -182,8 +182,8 @@
-
- 14.0
+
+ 17.0
-
\ No newline at end of file
+
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/App.xaml b/Samples/WpfNetWindowsMsalProviderSample/App.xaml
similarity index 66%
rename from Samples/WpfNet5WindowsMsalProviderSample/App.xaml
rename to Samples/WpfNetWindowsMsalProviderSample/App.xaml
index 35cad72..041ec75 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/App.xaml
+++ b/Samples/WpfNetWindowsMsalProviderSample/App.xaml
@@ -1,7 +1,7 @@
-
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/App.xaml.cs b/Samples/WpfNetWindowsMsalProviderSample/App.xaml.cs
similarity index 97%
rename from Samples/WpfNet5WindowsMsalProviderSample/App.xaml.cs
rename to Samples/WpfNetWindowsMsalProviderSample/App.xaml.cs
index 928b0ec..c8050ce 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/App.xaml.cs
+++ b/Samples/WpfNetWindowsMsalProviderSample/App.xaml.cs
@@ -9,7 +9,7 @@
using CommunityToolkit.Authentication.Extensions;
using Microsoft.Identity.Client.Extensions.Msal;
-namespace WpfNet5WindowsMsalProviderSample
+namespace WpfNetWindowsMsalProviderSample
{
public partial class App : Application
{
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/AssemblyInfo.cs b/Samples/WpfNetWindowsMsalProviderSample/AssemblyInfo.cs
similarity index 100%
rename from Samples/WpfNet5WindowsMsalProviderSample/AssemblyInfo.cs
rename to Samples/WpfNetWindowsMsalProviderSample/AssemblyInfo.cs
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/CacheConfig.cs b/Samples/WpfNetWindowsMsalProviderSample/CacheConfig.cs
similarity index 96%
rename from Samples/WpfNet5WindowsMsalProviderSample/CacheConfig.cs
rename to Samples/WpfNetWindowsMsalProviderSample/CacheConfig.cs
index 5986a84..8077ad4 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/CacheConfig.cs
+++ b/Samples/WpfNetWindowsMsalProviderSample/CacheConfig.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
using Microsoft.Identity.Client.Extensions.Msal;
-namespace WpfNet5WindowsMsalProviderSample
+namespace WpfNetWindowsMsalProviderSample
{
///
/// https://github.com/AzureAD/microsoft-authentication-extensions-for-dotnet/wiki/Cross-platform-Token-Cache
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/LoginButton.xaml b/Samples/WpfNetWindowsMsalProviderSample/LoginButton.xaml
similarity index 79%
rename from Samples/WpfNet5WindowsMsalProviderSample/LoginButton.xaml
rename to Samples/WpfNetWindowsMsalProviderSample/LoginButton.xaml
index d6dfc4f..be55941 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/LoginButton.xaml
+++ b/Samples/WpfNetWindowsMsalProviderSample/LoginButton.xaml
@@ -1,9 +1,9 @@
-
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/LoginButton.xaml.cs b/Samples/WpfNetWindowsMsalProviderSample/LoginButton.xaml.cs
similarity index 97%
rename from Samples/WpfNet5WindowsMsalProviderSample/LoginButton.xaml.cs
rename to Samples/WpfNetWindowsMsalProviderSample/LoginButton.xaml.cs
index b312b95..f3f9e7f 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/LoginButton.xaml.cs
+++ b/Samples/WpfNetWindowsMsalProviderSample/LoginButton.xaml.cs
@@ -7,7 +7,7 @@
using System.Windows;
using System.Windows.Controls;
-namespace WpfNet5WindowsMsalProviderSample
+namespace WpfNetWindowsMsalProviderSample
{
///
/// A simple button for triggering the globally configured IProvider to sign in and out.
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/MainWindow.xaml b/Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml
similarity index 78%
rename from Samples/WpfNet5WindowsMsalProviderSample/MainWindow.xaml
rename to Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml
index c29cbd3..16db65a 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/MainWindow.xaml
+++ b/Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml
@@ -1,9 +1,9 @@
-
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/MainWindow.xaml.cs b/Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml.cs
similarity index 96%
rename from Samples/WpfNet5WindowsMsalProviderSample/MainWindow.xaml.cs
rename to Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml.cs
index d42904a..43f36ed 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/MainWindow.xaml.cs
+++ b/Samples/WpfNetWindowsMsalProviderSample/MainWindow.xaml.cs
@@ -6,7 +6,7 @@
using CommunityToolkit.Graph.Extensions;
using System.Windows;
-namespace WpfNet5WindowsMsalProviderSample
+namespace WpfNetWindowsMsalProviderSample
{
///
/// Interaction logic for MainWindow.xaml
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/README.md b/Samples/WpfNetWindowsMsalProviderSample/README.md
similarity index 95%
rename from Samples/WpfNet5WindowsMsalProviderSample/README.md
rename to Samples/WpfNetWindowsMsalProviderSample/README.md
index c57018b..a916958 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/README.md
+++ b/Samples/WpfNetWindowsMsalProviderSample/README.md
@@ -1,4 +1,4 @@
-# MsalProvider Authentication Sample for .NET 5.0 WPF apps
+# MsalProvider Authentication Sample for .NET 6.0 WPF apps
This sample demonstrates how to configure the MsalProvider to authenticate consumer MSA and organizational AAD accounts in your apps.
diff --git a/Samples/WpfNet5WindowsMsalProviderSample/WpfNet5WindowsMsalProviderSample.csproj b/Samples/WpfNetWindowsMsalProviderSample/WpfNetWindowsMsalProviderSample.csproj
similarity index 81%
rename from Samples/WpfNet5WindowsMsalProviderSample/WpfNet5WindowsMsalProviderSample.csproj
rename to Samples/WpfNetWindowsMsalProviderSample/WpfNetWindowsMsalProviderSample.csproj
index 36360eb..de00203 100644
--- a/Samples/WpfNet5WindowsMsalProviderSample/WpfNet5WindowsMsalProviderSample.csproj
+++ b/Samples/WpfNetWindowsMsalProviderSample/WpfNetWindowsMsalProviderSample.csproj
@@ -1,13 +1,13 @@
-
+
WinExe
- net5.0-windows10.0.17763.0
+ net6.0-windows10.0.17763.0
true
-
+
diff --git a/Toolkit.ruleset b/Toolkit.ruleset
deleted file mode 100644
index 5f70b95..0000000
--- a/Toolkit.ruleset
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj b/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj
index 312a23c..ff7a9ac 100644
--- a/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj
+++ b/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj
@@ -1,4 +1,4 @@
-
+
@@ -11,14 +11,14 @@
UnitTests.UWP
en-US
UAP
- 10.0.19041.0
+ 10.0.22621.0
10.0.17763.0
- 14
+ 17
512
{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
$(VisualStudioVersion)
false
- 9.0
+ 10.0
true
@@ -154,28 +154,28 @@
- 5.0.2
+ 7.0.0
- 6.1.0
+ 6.8.0
- 4.5.0
+ 4.48.0
- 6.2.12
+ 6.2.13
- 7.1.0
+ 7.1.3
- 2.2.7
+ 2.2.10
- 2.2.7
+ 2.2.10
- 5.0.2
+ 7.0.1
4.3.0
@@ -195,8 +195,8 @@
CommunityToolkit.Graph
-
- 14.0
+
+ 17.0
-
\ No newline at end of file
+
diff --git a/Windows-Toolkit-Graph-Controls.sln b/Windows-Toolkit-Graph-Controls.sln
index 5ccb929..0afed84 100644
--- a/Windows-Toolkit-Graph-Controls.sln
+++ b/Windows-Toolkit-Graph-Controls.sln
@@ -1,6 +1,6 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.29230.61
+# Visual Studio Version 17
+VisualStudioVersion = 17.4.33103.184
MinimumVisualStudioVersion = 15.0.26124.0
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommunityToolkit.Graph", "CommunityToolkit.Graph\CommunityToolkit.Graph.csproj", "{B2246169-0CD8-473C-AFF6-172310E2C3F6}"
EndProject
@@ -19,7 +19,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Config", "Build Confi
build\header.txt = build\header.txt
nuget.config = nuget.config
settings.xamlstyler = settings.xamlstyler
- stylecop.json = stylecop.json
version.json = version.json
build\Windows.Toolkit.Common.props = build\Windows.Toolkit.Common.props
build\Windows.Toolkit.Common.targets = build\Windows.Toolkit.Common.targets
@@ -43,13 +42,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{022B
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UwpMsalProviderSample", "Samples\UwpMsalProviderSample\UwpMsalProviderSample.csproj", "{D0F6A1EB-806E-424A-BDCA-9F749F12774F}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WpfNet5WindowsMsalProviderSample", "Samples\WpfNet5WindowsMsalProviderSample\WpfNet5WindowsMsalProviderSample.csproj", "{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WpfNetWindowsMsalProviderSample", "Samples\WpfNetWindowsMsalProviderSample\WpfNetWindowsMsalProviderSample.csproj", "{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UwpWindowsProviderSample", "Samples\UwpWindowsProviderSample\UwpWindowsProviderSample.csproj", "{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManualGraphRequestSample", "Samples\ManualGraphRequestSample\ManualGraphRequestSample.csproj", "{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WpfNetCoreMsalProviderSample", "Samples\WpfNetCoreMsalProviderSample\WpfNetCoreMsalProviderSample.csproj", "{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WpfNetCoreMsalProviderSample", "Samples\WpfNetCoreMsalProviderSample\WpfNetCoreMsalProviderSample.csproj", "{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -345,17 +344,9 @@ Global
{6B33B26C-008B-4ADB-B317-EF996CD6755B}.Release|x86.Build.0 = Release|x86
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|Any CPU.ActiveCfg = Debug|x86
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|ARM.ActiveCfg = Debug|ARM
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|ARM.Build.0 = Debug|ARM
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|ARM.Deploy.0 = Debug|ARM
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|ARM64.ActiveCfg = Debug|ARM64
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|ARM64.Build.0 = Debug|ARM64
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|ARM64.Deploy.0 = Debug|ARM64
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|x64.ActiveCfg = Debug|x64
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|x64.Build.0 = Debug|x64
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|x64.Deploy.0 = Debug|x64
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|x86.ActiveCfg = Debug|x86
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|x86.Build.0 = Debug|x86
- {D0F6A1EB-806E-424A-BDCA-9F749F12774F}.CI|x86.Deploy.0 = Debug|x86
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.Debug|Any CPU.ActiveCfg = Debug|x86
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.Debug|Any CPU.Build.0 = Debug|x86
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.Debug|Any CPU.Deploy.0 = Debug|x86
@@ -399,13 +390,9 @@ Global
{D0F6A1EB-806E-424A-BDCA-9F749F12774F}.Release|x86.Deploy.0 = Release|x86
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|Any CPU.ActiveCfg = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|ARM.ActiveCfg = Debug|Any CPU
- {EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|ARM.Build.0 = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|ARM64.ActiveCfg = Debug|Any CPU
- {EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|ARM64.Build.0 = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|x64.ActiveCfg = Debug|Any CPU
- {EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|x64.Build.0 = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|x86.ActiveCfg = Debug|Any CPU
- {EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.CI|x86.Build.0 = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.Debug|ARM.ActiveCfg = Debug|Any CPU
@@ -436,17 +423,9 @@ Global
{EDAD72A8-498B-4645-AD1A-E5CDBDB610F7}.Release|x86.Build.0 = Release|Any CPU
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|Any CPU.ActiveCfg = Debug|x86
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|ARM.ActiveCfg = Debug|ARM
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|ARM.Build.0 = Debug|ARM
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|ARM.Deploy.0 = Debug|ARM
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|ARM64.ActiveCfg = Debug|ARM64
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|ARM64.Build.0 = Debug|ARM64
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|ARM64.Deploy.0 = Debug|ARM64
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|x64.ActiveCfg = Debug|x64
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|x64.Build.0 = Debug|x64
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|x64.Deploy.0 = Debug|x64
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|x86.ActiveCfg = Debug|x86
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|x86.Build.0 = Debug|x86
- {C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.CI|x86.Deploy.0 = Debug|x86
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.Debug|Any CPU.ActiveCfg = Debug|x86
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.Debug|Any CPU.Build.0 = Debug|x86
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.Debug|Any CPU.Deploy.0 = Debug|x86
@@ -490,17 +469,9 @@ Global
{C60C02DF-F44C-4449-A1D4-C2DC3A7959B9}.Release|x86.Deploy.0 = Release|x86
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|Any CPU.ActiveCfg = Debug|x86
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|ARM.ActiveCfg = Debug|ARM
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|ARM.Build.0 = Debug|ARM
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|ARM.Deploy.0 = Debug|ARM
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|ARM64.ActiveCfg = Debug|ARM64
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|ARM64.Build.0 = Debug|ARM64
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|ARM64.Deploy.0 = Debug|ARM64
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|x64.ActiveCfg = Debug|x64
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|x64.Build.0 = Debug|x64
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|x64.Deploy.0 = Debug|x64
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|x86.ActiveCfg = Debug|x86
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|x86.Build.0 = Debug|x86
- {192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.CI|x86.Deploy.0 = Debug|x86
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.Debug|Any CPU.ActiveCfg = Debug|x86
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.Debug|Any CPU.Build.0 = Debug|x86
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.Debug|Any CPU.Deploy.0 = Debug|x86
@@ -543,15 +514,10 @@ Global
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.Release|x86.Build.0 = Release|x86
{192CC7FD-408D-4B0B-9032-AD06C7BE46C6}.Release|x86.Deploy.0 = Release|x86
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|Any CPU.ActiveCfg = Debug|Any CPU
- {86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|Any CPU.Build.0 = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|ARM.ActiveCfg = Debug|Any CPU
- {86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|ARM.Build.0 = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|ARM64.ActiveCfg = Debug|Any CPU
- {86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|ARM64.Build.0 = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|x64.ActiveCfg = Debug|Any CPU
- {86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|x64.Build.0 = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|x86.ActiveCfg = Debug|Any CPU
- {86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.CI|x86.Build.0 = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.Debug|Any CPU.Build.0 = Debug|Any CPU
{86AD7D3C-F03F-4FD1-8D69-AB0520805A65}.Debug|ARM.ActiveCfg = Debug|Any CPU
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 1e0f608..0cc6593 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -10,18 +10,15 @@ pr:
- dev/*
- rel/*
-# Microsoft-hosted agent pool for Visual Studio 2019
+# Microsoft-hosted agent pool for Visual Studio 2022
pool:
- vmImage: windows-2019
-
-variables:
- BuildConfiguration: CI
+ vmImage: windows-2022
steps:
# Setup Environment Variables
- task: BatchScript@1
inputs:
- filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
+ filename: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
arguments: -no_logo
modifyEnvironment: true
displayName: Setup Environment Variables
@@ -45,13 +42,30 @@ steps:
displayName: Set Version
# Install Windows SDK 18362 (minimum compatible sdk)
- - powershell: .\build\Install-WindowsSdkISO.ps1 18362
+ - powershell: .\build\Install-WindowsSdkISO.ps1 22621
displayName: Insider SDK
- # Run cake build
- - powershell: .\build.ps1 -target=Package
- displayName: Build
- workingDirectory: .\build
+ # restore & build solution
+ - script: msbuild -r -target:Build -p:Configuration=CI -p:GenerateLibraryLayout=true
+ displayName: Restore & Build solution
+
+ # run tests
+ ### Tests require logging in, so aren't achievable in CI with current setup. Should ask MSAL/Graph team how they mock in future.
+ ### Leaving this here as if UnitTests.Uwp area built, this should run them.
+ #- script: vstest.console.exe ./UnitTests/**/*.appxrecipe /Framework:FrameworkUap10 /logger:"trx;LogFileName=VsTestResultsUwp.trx"
+ # displayName: Unit Tests
+
+ # publish results
+ #- task: PublishTestResults@2
+ # inputs:
+ # testResultsFormat: 'VSTest'
+ # testResultsFiles: '**/VsTestResults*.trx'
+ # displayName: Publish Test Results
+ # condition: always()
+
+ # pack solution
+ - script: msbuild -target:Pack -p:Configuration=CI -p:GenerateLibraryLayout=true -p:PackageOutputPath=..\bin\nupkg
+ displayName: Pack solution
# Sign Nuget package
- task: PowerShell@2
@@ -69,5 +83,4 @@ steps:
displayName: Publish Package Artifacts
inputs:
pathToPublish: .\bin\nupkg
- artifactType: container
artifactName: Packages
diff --git a/build/Windows.Toolkit.Common.props b/build/Windows.Toolkit.Common.props
index 70a111d..28429bb 100644
--- a/build/Windows.Toolkit.Common.props
+++ b/build/Windows.Toolkit.Common.props
@@ -24,7 +24,7 @@
10.0
- 19041
+ 22621
17763
@@ -42,4 +42,4 @@
$(TF_BUILD)
-
\ No newline at end of file
+
diff --git a/build/build.cake b/build/build.cake
index 4923cc4..2afc594 100644
--- a/build/build.cake
+++ b/build/build.cake
@@ -1,7 +1,9 @@
-#module nuget:?package=Cake.LongPath.Module&version=0.7.0
+#module nuget:?package=Cake.LongPath.Module&version=1.0.1
-#addin nuget:?package=Cake.FileHelpers&version=3.3.0
-#addin nuget:?package=Cake.Powershell&version=0.4.8
+#addin nuget:?package=Cake.FileHelpers&version=4.0.1
+#addin nuget:?package=Cake.Powershell&version=1.0.1
+#load nuget:?package=System.Buffers&version=4.0.0
+#addin nuget:?package=Cake.GitVersioning&version=3.5.119
using System;
using System.Linq;
@@ -17,7 +19,6 @@ var target = Argument("target", "Default");
// VERSIONS
//////////////////////////////////////////////////////////////////////
-var gitVersioningVersion = "3.3.37";
var inheritDocVersion = "2.5.2";
//////////////////////////////////////////////////////////////////////
@@ -35,7 +36,6 @@ var nupkgDir = binDir + "/nupkg";
var styler = toolsDir + "/XamlStyler.Console/tools/xstyler.exe";
var stylerFile = baseDir + "/settings.xamlstyler";
-var versionClient = toolsDir + "/nerdbank.gitversioning/tools/Get-Version.ps1";
string Version = null;
var inheritDoc = toolsDir + "/InheritDoc/tools/InheritDoc.exe";
@@ -56,7 +56,12 @@ void VerifyHeaders(bool Replace)
Func exclude_objDir =
fileSystemInfo => !fileSystemInfo.Path.Segments.Contains("obj");
- var files = GetFiles(baseDir + "/**/*.cs", exclude_objDir).Where(file =>
+ var globberSettings = new GlobberSettings
+ {
+ Predicate = exclude_objDir
+ };
+
+ var files = GetFiles(baseDir + "/**/*.cs", globberSettings).Where(file =>
{
var path = file.ToString();
return !(path.EndsWith(".g.cs") || path.EndsWith(".i.cs") || System.IO.Path.GetFileName(path).Contains("TemporaryGeneratedFile"));
@@ -94,6 +99,13 @@ void VerifyHeaders(bool Replace)
}
}
+void RetrieveVersion()
+{
+ Information("\nRetrieving version...");
+ Version = GitVersioningGetVersion().NuGetPackageVersion;
+ Information("\nBuild Version: " + Version);
+}
+
//////////////////////////////////////////////////////////////////////
// DEFAULT TASK
//////////////////////////////////////////////////////////////////////
@@ -128,19 +140,7 @@ Task("Version")
.IsDependentOn("Verify")
.Does(() =>
{
- Information("\nDownloading NerdBank GitVersioning...");
- var installSettings = new NuGetInstallSettings {
- ExcludeVersion = true,
- Version = gitVersioningVersion,
- OutputDirectory = toolsDir
- };
-
- NuGetInstall(new []{"nerdbank.gitversioning"}, installSettings);
-
- Information("\nRetrieving version...");
- var results = StartPowershellFile(versionClient);
- Version = results[1].Properties["NuGetPackageVersion"].Value.ToString();
- Information("\nBuild Version: " + Version);
+ RetrieveVersion();
});
Task("Build")
@@ -151,7 +151,8 @@ Task("Build")
Information("\nBuilding Solution");
var buildSettings = new MSBuildSettings
{
- MaxCpuCount = 0
+ MaxCpuCount = 0,
+ ToolVersion = MSBuildToolVersion.VS2022
}
.SetConfiguration("CI")
.WithTarget("Restore");
@@ -163,7 +164,8 @@ Task("Build")
// Build once with normal dependency ordering
buildSettings = new MSBuildSettings
{
- MaxCpuCount = 0
+ MaxCpuCount = 0,
+ ToolVersion = MSBuildToolVersion.VS2022
}
.SetConfiguration("CI")
.WithTarget("Build")
@@ -208,7 +210,8 @@ Task("Package")
{
// Invoke the pack target in the end
var buildSettings = new MSBuildSettings {
- MaxCpuCount = 0
+ MaxCpuCount = 0,
+ ToolVersion = MSBuildToolVersion.VS2022
}
.SetConfiguration("CI")
.WithTarget("Pack")
@@ -249,7 +252,12 @@ Task("StyleXaml")
Func exclude_objDir =
fileSystemInfo => !fileSystemInfo.Path.Segments.Contains("obj");
- var files = GetFiles(baseDir + "/**/*.xaml", exclude_objDir);
+ var globberSettings = new GlobberSettings
+ {
+ Predicate = exclude_objDir
+ };
+
+ var files = GetFiles(baseDir + "/**/*.xaml", globberSettings);
Information("\nChecking " + files.Count() + " file(s) for XAML Structure");
foreach(var file in files)
{
diff --git a/build/build.ps1 b/build/build.ps1
index 7a24017..dcc512f 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -95,20 +95,20 @@ $MODULES_PACKAGES_CONFIG_MD5 = Join-Path $MODULES_DIR "packages.config.md5sum"
$UseMono = "";
if($Mono.IsPresent) {
Write-Verbose -Message "Using the Mono based scripting engine."
- $UseMono = "-mono"
+ $UseMono = "--mono"
}
# Should we use the new Roslyn?
$UseExperimental = "";
if($Experimental.IsPresent -and !($Mono.IsPresent)) {
Write-Verbose -Message "Using experimental version of Roslyn."
- $UseExperimental = "-experimental"
+ $UseExperimental = "--experimental"
}
# Is this a dry run?
$UseDryRun = "";
if($WhatIf.IsPresent) {
- $UseDryRun = "-dryrun"
+ $UseDryRun = "--dryrun"
}
# Make sure tools folder exists
@@ -228,5 +228,5 @@ if ($LASTEXITCODE -ne 0) {
}
Write-Host "Running build script..."
-Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs"
+Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" --verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs"
exit $LASTEXITCODE
\ No newline at end of file
diff --git a/build/tools/packages.config b/build/tools/packages.config
index ba25a5e..7d7c17d 100644
--- a/build/tools/packages.config
+++ b/build/tools/packages.config
@@ -1,4 +1,4 @@
-
+
\ No newline at end of file
diff --git a/global.json b/global.json
index fec540a..939f4aa 100644
--- a/global.json
+++ b/global.json
@@ -1,5 +1,9 @@
{
"msbuild-sdks": {
- "MSBuild.Sdk.Extras": "3.0.23"
+ "MSBuild.Sdk.Extras": "3.0.44"
+ },
+ "sdk": {
+ "version": "6.0.400",
+ "rollForward": "latestFeature"
}
-}
\ No newline at end of file
+}
diff --git a/stylecop.json b/stylecop.json
deleted file mode 100644
index d839cca..0000000
--- a/stylecop.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
- "settings": {
- "orderingRules": {
- "usingDirectivesPlacement": "outsideNamespace"
- }
- }
- }
\ No newline at end of file
diff --git a/version.json b/version.json
index e986b91..ed10327 100644
--- a/version.json
+++ b/version.json
@@ -1,5 +1,5 @@
{
- "version": "7.1.1-build.{height}",
+ "version": "7.1.3-build.{height}",
"publicReleaseRefSpec": [
"^refs/heads/main$", // we release out of main
"^refs/heads/dev$", // we release out of dev