From 4b8a67dbd5735ddec34cfd83117b8227e88ac3a7 Mon Sep 17 00:00:00 2001 From: Nirmal Guru Date: Sat, 31 Jul 2021 10:10:45 +0530 Subject: [PATCH] Manage Dependencies centrally Update package versions. Use Static Graph restore when applicable. Manage Packages Centrally using NuGet's CPVM feature. --- Directory.Build.props | 8 +- Directory.Packages.props | 102 ++++++++++++++++++ Directory.Solution.props | 14 +++ GazeInputTest/GazeInputTest.csproj | 4 +- ...Microsoft.Toolkit.Uwp.Notifications.csproj | 12 +-- .../Microsoft.Toolkit.Uwp.SampleApp.csproj | 32 ++---- ...Toolkit.Uwp.Samples.BackgroundTasks.csproj | 4 +- .../Microsoft.Toolkit.Uwp.UI.Behaviors.csproj | 2 +- ...ft.Toolkit.Uwp.UI.Controls.Markdown.csproj | 2 +- ...osoft.Toolkit.Uwp.UI.Controls.Media.csproj | 4 +- .../Microsoft.Toolkit.Uwp.UI.Media.csproj | 4 +- .../Microsoft.Toolkit.Uwp.UI.csproj | 2 +- .../Microsoft.Toolkit.Uwp.csproj | 2 +- ...oft.Toolkit.Win32.WpfCore.SampleApp.csproj | 2 +- SmokeTests/SmokeTest.csproj | 8 +- UITests/UITests.App/UITests.App.csproj | 24 ++--- .../UITests.Tests.MSTest.csproj | 22 ++-- .../UITests.Tests.TAEF.csproj | 10 +- .../UnitTests.Notifications.NetCore.csproj | 6 +- .../UnitTests.Notifications.UWP.csproj | 22 ++-- .../UnitTests.Notifications.WinRT.csproj | 20 +--- UnitTests/UnitTests.UWP/UnitTests.UWP.csproj | 50 +++------ .../UnitTests.XamlIslands.UWPApp.csproj | 14 +-- .../UnitTests.XamlIslands.csproj | 2 +- build/Windows.Toolkit.Common.targets | 11 ++ build/Windows.Toolkit.UWP.Controls.targets | 2 +- ...indows.Toolkit.VisualStudio.Design.targets | 4 +- build/build.cake | 6 +- 28 files changed, 219 insertions(+), 176 deletions(-) create mode 100644 Directory.Packages.props create mode 100644 Directory.Solution.props diff --git a/Directory.Build.props b/Directory.Build.props index 3ddb90b8c38..32629db9aa8 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,5 +1,7 @@ + + $(MSBuildThisFileDirectory) $(RepositoryDirectory)build\ @@ -46,7 +48,7 @@ false - + @@ -54,7 +56,7 @@ - + @@ -68,7 +70,7 @@ $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - + diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 00000000000..9bd7dac96e7 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,102 @@ + + + + 2.0.3 + 6.2.13 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Directory.Solution.props b/Directory.Solution.props new file mode 100644 index 00000000000..ac476e14109 --- /dev/null +++ b/Directory.Solution.props @@ -0,0 +1,14 @@ + + + + True + True + + + + + + False + + + \ No newline at end of file diff --git a/GazeInputTest/GazeInputTest.csproj b/GazeInputTest/GazeInputTest.csproj index f48a7173c1d..6ab4c9a34a6 100644 --- a/GazeInputTest/GazeInputTest.csproj +++ b/GazeInputTest/GazeInputTest.csproj @@ -133,9 +133,7 @@ - - 6.2.12 - + diff --git a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj index 358ff668538..e4ec71c55d8 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj +++ b/Microsoft.Toolkit.Uwp.Notifications/Microsoft.Toolkit.Uwp.Notifications.csproj @@ -43,23 +43,23 @@ - + - - - + + + - + - + - - 2.7.0 - - - 0.7.0-alpha - - - 2.0.1 - - - 4.5.0 - + + + + diff --git a/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks.csproj b/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks.csproj index 11b35687b8d..f5ce0b6dc7b 100644 --- a/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks.csproj +++ b/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks/Microsoft.Toolkit.Uwp.Samples.BackgroundTasks.csproj @@ -93,9 +93,7 @@ PackageReference - - 6.2.12 - + 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 81dfa301b10..ff1a2a473be 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 @@ -22,7 +22,7 @@ - + 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 111e7a153c8..a4088ebf390 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 @@ -19,7 +19,7 @@ - + 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 e2a245b7046..819eab9282f 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 @@ -32,8 +32,8 @@ - - + + 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 b3355b31554..43e44f0c92b 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 @@ -47,8 +47,8 @@ - - + + diff --git a/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj b/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj index bdedf71aa1d..768b56d42aa 100644 --- a/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj +++ b/Microsoft.Toolkit.Uwp.UI/Microsoft.Toolkit.Uwp.UI.csproj @@ -54,7 +54,7 @@ - + \ No newline at end of file diff --git a/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj b/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj index 4c1de1f5720..65153077e87 100644 --- a/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj +++ b/Microsoft.Toolkit.Uwp/Microsoft.Toolkit.Uwp.csproj @@ -11,7 +11,7 @@ - + \ No newline at end of file diff --git a/Microsoft.Toolkit.Win32.WpfCore.SampleApp/Microsoft.Toolkit.Win32.WpfCore.SampleApp.csproj b/Microsoft.Toolkit.Win32.WpfCore.SampleApp/Microsoft.Toolkit.Win32.WpfCore.SampleApp.csproj index 4a6de004eaf..74c4c8fda7a 100644 --- a/Microsoft.Toolkit.Win32.WpfCore.SampleApp/Microsoft.Toolkit.Win32.WpfCore.SampleApp.csproj +++ b/Microsoft.Toolkit.Win32.WpfCore.SampleApp/Microsoft.Toolkit.Win32.WpfCore.SampleApp.csproj @@ -12,7 +12,7 @@ - + \ No newline at end of file diff --git a/SmokeTests/SmokeTest.csproj b/SmokeTests/SmokeTest.csproj index e57abd520c8..5d81a9f69a7 100644 --- a/SmokeTests/SmokeTest.csproj +++ b/SmokeTests/SmokeTest.csproj @@ -105,15 +105,11 @@ - - 6.2.10 - + - - 2.7.0 - + diff --git a/UITests/UITests.App/UITests.App.csproj b/UITests/UITests.App/UITests.App.csproj index 1a300fe06e5..4723c352c24 100644 --- a/UITests/UITests.App/UITests.App.csproj +++ b/UITests/UITests.App/UITests.App.csproj @@ -157,24 +157,12 @@ - - 6.2.12 - - - 7.1.2 - - - 7.1.2 - - - 7.1.2 - - - 0.0.4 - - - 5.0.2 - + + + + + + diff --git a/UITests/UITests.Tests.MSTest/UITests.Tests.MSTest.csproj b/UITests/UITests.Tests.MSTest/UITests.Tests.MSTest.csproj index 429adb007c5..c8c752b602a 100644 --- a/UITests/UITests.Tests.MSTest/UITests.Tests.MSTest.csproj +++ b/UITests/UITests.Tests.MSTest/UITests.Tests.MSTest.csproj @@ -13,20 +13,20 @@ - - - - + + + + - + - - - - + + + + - - + + diff --git a/UITests/UITests.Tests.TAEF/UITests.Tests.TAEF.csproj b/UITests/UITests.Tests.TAEF/UITests.Tests.TAEF.csproj index 70718b662e4..4dd2896bfa9 100644 --- a/UITests/UITests.Tests.TAEF/UITests.Tests.TAEF.csproj +++ b/UITests/UITests.Tests.TAEF/UITests.Tests.TAEF.csproj @@ -54,13 +54,13 @@ - + - - - + + + - + diff --git a/UnitTests/UnitTests.Notifications.NetCore/UnitTests.Notifications.NetCore.csproj b/UnitTests/UnitTests.Notifications.NetCore/UnitTests.Notifications.NetCore.csproj index 3a218e5ac9d..a6c001e1b13 100644 --- a/UnitTests/UnitTests.Notifications.NetCore/UnitTests.Notifications.NetCore.csproj +++ b/UnitTests/UnitTests.Notifications.NetCore/UnitTests.Notifications.NetCore.csproj @@ -9,9 +9,9 @@ - - - + + + diff --git a/UnitTests/UnitTests.Notifications.UWP/UnitTests.Notifications.UWP.csproj b/UnitTests/UnitTests.Notifications.UWP/UnitTests.Notifications.UWP.csproj index 63d6cfd5a4c..299ca2f86c1 100644 --- a/UnitTests/UnitTests.Notifications.UWP/UnitTests.Notifications.UWP.csproj +++ b/UnitTests/UnitTests.Notifications.UWP/UnitTests.Notifications.UWP.csproj @@ -105,22 +105,12 @@ - - 6.2.12 - - - 2.1.2 - - - 2.1.2 - - - - 4.5.0 - - - 4.3.0 - + + + + + + diff --git a/UnitTests/UnitTests.Notifications.WinRT/UnitTests.Notifications.WinRT.csproj b/UnitTests/UnitTests.Notifications.WinRT/UnitTests.Notifications.WinRT.csproj index 46a0d70cc48..6af216ba580 100644 --- a/UnitTests/UnitTests.Notifications.WinRT/UnitTests.Notifications.WinRT.csproj +++ b/UnitTests/UnitTests.Notifications.WinRT/UnitTests.Notifications.WinRT.csproj @@ -105,21 +105,11 @@ - - 6.2.10 - - - 2.1.0 - - - 2.1.0 - - - 4.3.1 - - - 4.3.0 - + + + + + diff --git a/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj b/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj index 3b1e2a0b316..8b88426f551 100644 --- a/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj +++ b/UnitTests/UnitTests.UWP/UnitTests.UWP.csproj @@ -111,44 +111,18 @@ - - 5.0.2 - - - 5.10.3 - - - 6.2.12 - - - 7.1.2 - - - 7.1.2 - - - 2.7.0 - - - 2.2.5 - - - 2.2.5 - - - - 10.0.3 - - - - 5.0.2 - - - 4.3.0 - - - 1.25.0 - + + + + + + + + + + + + diff --git a/UnitTests/UnitTests.XamlIslands.UWPApp/UnitTests.XamlIslands.UWPApp.csproj b/UnitTests/UnitTests.XamlIslands.UWPApp/UnitTests.XamlIslands.UWPApp.csproj index e23eddd5a82..9e382d5de1f 100644 --- a/UnitTests/UnitTests.XamlIslands.UWPApp/UnitTests.XamlIslands.UWPApp.csproj +++ b/UnitTests/UnitTests.XamlIslands.UWPApp/UnitTests.XamlIslands.UWPApp.csproj @@ -148,16 +148,12 @@ - - 6.2.12 - - - 6.1.2 - + + diff --git a/UnitTests/UnitTests.XamlIslands/UnitTests.XamlIslands.csproj b/UnitTests/UnitTests.XamlIslands/UnitTests.XamlIslands.csproj index 39db0bb64ea..149f202733c 100644 --- a/UnitTests/UnitTests.XamlIslands/UnitTests.XamlIslands.csproj +++ b/UnitTests/UnitTests.XamlIslands/UnitTests.XamlIslands.csproj @@ -18,7 +18,7 @@ - + \ No newline at end of file diff --git a/build/Windows.Toolkit.Common.targets b/build/Windows.Toolkit.Common.targets index 28cd995b2dc..eb74df84231 100644 --- a/build/Windows.Toolkit.Common.targets +++ b/build/Windows.Toolkit.Common.targets @@ -27,4 +27,15 @@ + + + + + \ No newline at end of file diff --git a/build/Windows.Toolkit.UWP.Controls.targets b/build/Windows.Toolkit.UWP.Controls.targets index 57fcc888af4..f1bb8e164eb 100644 --- a/build/Windows.Toolkit.UWP.Controls.targets +++ b/build/Windows.Toolkit.UWP.Controls.targets @@ -5,7 +5,7 @@ - + diff --git a/build/Windows.Toolkit.VisualStudio.Design.targets b/build/Windows.Toolkit.VisualStudio.Design.targets index 1dec2c09418..795ad41cd3a 100644 --- a/build/Windows.Toolkit.VisualStudio.Design.targets +++ b/build/Windows.Toolkit.VisualStudio.Design.targets @@ -34,8 +34,8 @@ - - + + \ No newline at end of file diff --git a/build/build.cake b/build/build.cake index a2b1d5cf085..e1218365c72 100644 --- a/build/build.cake +++ b/build/build.cake @@ -2,9 +2,9 @@ #addin nuget:?package=Cake.FileHelpers&version=4.0.1 #addin nuget:?package=Cake.Powershell&version=1.0.1 -#addin nuget:?package=Cake.GitVersioning&version=3.4.220 +#addin nuget:?package=Cake.GitVersioning&version=3.4.231 -#tool nuget:?package=MSTest.TestAdapter&version=2.2.5 +#tool nuget:?package=MSTest.TestAdapter&version=2.2.6 #tool nuget:?package=vswhere&version=2.8.4 using System; @@ -233,7 +233,7 @@ public string getMSTestAdapterPath(){ if(nugetPaths.Count == 0){ throw new Exception( "Cannot locate the MSTest test adapter. " + - "You might need to add '#tool nuget:?package=MSTest.TestAdapter&version=2.1.0' " + + "You might need to add '#tool nuget:?package=MSTest.TestAdapter&version=' " + "to the top of your build.cake file."); }