From a3e0d80017d30ab901f7703afdaee647212a869c Mon Sep 17 00:00:00 2001 From: Nirmal Guru Date: Sat, 31 Jul 2021 11:11:11 +0530 Subject: [PATCH] Use "MSBuild.NET.Extras.Sdk" This replacement for "MSBuild.Sdk.Extras" contains fixes around UWP project setup and build! --- Directory.Build.props | 4 ++-- Directory.Packages.props | 3 ++- .../Microsoft.Toolkit.Uwp.Connectivity.csproj | 2 +- .../Microsoft.Toolkit.Uwp.DeveloperTools.csproj | 2 +- .../Microsoft.Toolkit.Uwp.Input.GazeInteraction.csproj | 2 +- .../Microsoft.Toolkit.Uwp.Notifications.csproj | 7 +------ .../Microsoft.Toolkit.Uwp.UI.Animations.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Behaviors.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.Core.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.Input.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.Markdown.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.Media.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Controls.csproj | 2 +- .../Microsoft.Toolkit.Uwp.UI.Media.csproj | 2 +- Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj | 2 +- Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj | 2 +- global.json | 2 +- nuget.config | 5 +++-- 21 files changed, 25 insertions(+), 28 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index c501ccff717..476bfe2ead5 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -32,8 +32,8 @@ $(NoWarn);CS8002 - - true + + true diff --git a/Directory.Packages.props b/Directory.Packages.props index 6f8a9c1a872..84a7f981487 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -11,7 +11,8 @@ - + + diff --git a/Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj b/Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj index 4cd3b1c28d4..42227e6c263 100644 --- a/Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj +++ b/Microsoft.Toolkit.Uwp.Connectivity/Microsoft.Toolkit.Uwp.Connectivity.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.DeveloperTools/Microsoft.Toolkit.Uwp.DeveloperTools.csproj b/Microsoft.Toolkit.Uwp.DeveloperTools/Microsoft.Toolkit.Uwp.DeveloperTools.csproj index c5d5838785f..3e5daeae53a 100644 --- a/Microsoft.Toolkit.Uwp.DeveloperTools/Microsoft.Toolkit.Uwp.DeveloperTools.csproj +++ b/Microsoft.Toolkit.Uwp.DeveloperTools/Microsoft.Toolkit.Uwp.DeveloperTools.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.Input.GazeInteraction/Microsoft.Toolkit.Uwp.Input.GazeInteraction.csproj b/Microsoft.Toolkit.Uwp.Input.GazeInteraction/Microsoft.Toolkit.Uwp.Input.GazeInteraction.csproj index 0acc2d6fe2a..7a220a3046e 100644 --- a/Microsoft.Toolkit.Uwp.Input.GazeInteraction/Microsoft.Toolkit.Uwp.Input.GazeInteraction.csproj +++ b/Microsoft.Toolkit.Uwp.Input.GazeInteraction/Microsoft.Toolkit.Uwp.Input.GazeInteraction.csproj @@ -1,4 +1,4 @@ - + uap10.0.17134 diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj index ed46d01dd89..51f98f51b18 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj @@ -1,4 +1,4 @@ - + netstandard1.4;uap10.0.19041;net461;netcoreapp3.1;net5.0;net5.0-windows10.0.17763.0;native @@ -31,7 +31,6 @@ .NETCore v5.0 $(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets - true UAP$(TargetPlatformMinVersion.Replace('.', '_')) @@ -60,10 +59,6 @@ - - - - diff --git a/Microsoft.Toolkit.Uwp.UI.Animations/Microsoft.Toolkit.Uwp.UI.Animations.csproj b/Microsoft.Toolkit.Uwp.UI.Animations/Microsoft.Toolkit.Uwp.UI.Animations.csproj index 130fdd806ef..cded28df431 100644 --- a/Microsoft.Toolkit.Uwp.UI.Animations/Microsoft.Toolkit.Uwp.UI.Animations.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Animations/Microsoft.Toolkit.Uwp.UI.Animations.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Behaviors/Microsoft.Toolkit.Uwp.UI.Behaviors.csproj b/Microsoft.Toolkit.Uwp.UI.Behaviors/Microsoft.Toolkit.Uwp.UI.Behaviors.csproj index ce9c2f86e73..a13fe08591b 100644 --- a/Microsoft.Toolkit.Uwp.UI.Behaviors/Microsoft.Toolkit.Uwp.UI.Behaviors.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Behaviors/Microsoft.Toolkit.Uwp.UI.Behaviors.csproj @@ -1,4 +1,4 @@ - + true diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Core/Microsoft.Toolkit.Uwp.UI.Controls.Core.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.Core/Microsoft.Toolkit.Uwp.UI.Controls.Core.csproj index c183de922ca..85d04b1925c 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Core/Microsoft.Toolkit.Uwp.UI.Controls.Core.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Core/Microsoft.Toolkit.Uwp.UI.Controls.Core.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.csproj index 6552d8fcd47..409d6ed0957 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid/Microsoft.Toolkit.Uwp.UI.Controls.DataGrid.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Input/Microsoft.Toolkit.Uwp.UI.Controls.Input.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.Input/Microsoft.Toolkit.Uwp.UI.Controls.Input.csproj index 292a821d980..017edb49788 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Input/Microsoft.Toolkit.Uwp.UI.Controls.Input.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Input/Microsoft.Toolkit.Uwp.UI.Controls.Input.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Layout/Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.Layout/Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj index 488c2b80257..83f2d4f8403 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Layout/Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Layout/Microsoft.Toolkit.Uwp.UI.Controls.Layout.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/Microsoft.Toolkit.Uwp.UI.Controls.Markdown.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/Microsoft.Toolkit.Uwp.UI.Controls.Markdown.csproj index a4088ebf390..e5052a4740c 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/Microsoft.Toolkit.Uwp.UI.Controls.Markdown.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/Microsoft.Toolkit.Uwp.UI.Controls.Markdown.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Media/Microsoft.Toolkit.Uwp.UI.Controls.Media.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.Media/Microsoft.Toolkit.Uwp.UI.Controls.Media.csproj index bf452f50f87..03b1cf78077 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Media/Microsoft.Toolkit.Uwp.UI.Controls.Media.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Media/Microsoft.Toolkit.Uwp.UI.Controls.Media.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls.Primitives/Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj b/Microsoft.Toolkit.Uwp.UI.Controls.Primitives/Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj index d290863d468..7057372cd9e 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls.Primitives/Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls.Primitives/Microsoft.Toolkit.Uwp.UI.Controls.Primitives.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI.Controls/Microsoft.Toolkit.Uwp.UI.Controls.csproj b/Microsoft.Toolkit.Uwp.UI.Controls/Microsoft.Toolkit.Uwp.UI.Controls.csproj index 7d2ab48bad5..538e3ea200e 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls/Microsoft.Toolkit.Uwp.UI.Controls.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Controls/Microsoft.Toolkit.Uwp.UI.Controls.csproj @@ -1,4 +1,4 @@ - + false diff --git a/Microsoft.Toolkit.Uwp.UI.Media/Microsoft.Toolkit.Uwp.UI.Media.csproj b/Microsoft.Toolkit.Uwp.UI.Media/Microsoft.Toolkit.Uwp.UI.Media.csproj index 9ac3ed9eee1..49385c7368a 100644 --- a/Microsoft.Toolkit.Uwp.UI.Media/Microsoft.Toolkit.Uwp.UI.Media.csproj +++ b/Microsoft.Toolkit.Uwp.UI.Media/Microsoft.Toolkit.Uwp.UI.Media.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj b/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj index aa8d9c21ba4..484188f815c 100644 --- a/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj +++ b/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj @@ -1,4 +1,4 @@ - + true diff --git a/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj b/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj index 0183e9525fb..a0ae5ceb3c3 100644 --- a/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj +++ b/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj @@ -1,4 +1,4 @@ - + uap10.0.17763 diff --git a/global.json b/global.json index a3d78890e48..8f2bdd9f2d6 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "msbuild-sdks": { - "MSBuild.Sdk.Extras": "3.0.22" + "MSBuild.NET.Extras.Sdk": "1.3.0-dev.23" } } \ No newline at end of file diff --git a/nuget.config b/nuget.config index 1b39cb3113e..8ec462d07e7 100644 --- a/nuget.config +++ b/nuget.config @@ -1,9 +1,10 @@ - - + + +