From 7856495d5919fd97e0cf6c1ed88243c8612ae77b Mon Sep 17 00:00:00 2001 From: Tomas Agustin Raies Date: Tue, 21 Apr 2020 12:55:04 -0700 Subject: [PATCH] Fix compilation problems related to the Interop project (#2290) * Added missing c++17 compile flag to common-md-flag * Remove .NET native tool chain from Settings.UI release config * This flag has to be removed because .Net Native does not support mixed assemblies, like PowerToysInterop. --- .../common-md-flag/common-md-flag.vcxproj | 1 + .../Microsoft.PowerToys.Settings.UI.csproj | 486 +++++++++--------- ...crosoft.PowerToys.Settings.UnitTest.csproj | 354 ++++++------- 3 files changed, 421 insertions(+), 420 deletions(-) diff --git a/src/common/common-md-flag/common-md-flag.vcxproj b/src/common/common-md-flag/common-md-flag.vcxproj index ebd8bc1629..4e3cac1d47 100644 --- a/src/common/common-md-flag/common-md-flag.vcxproj +++ b/src/common/common-md-flag/common-md-flag.vcxproj @@ -59,6 +59,7 @@ NDEBUG;_LIB;%(PreprocessorDefinitions) true pch.h + stdcpp17 Windows diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj b/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj index a6735c9ca9..187430c591 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj +++ b/src/core/Microsoft.PowerToys.Settings.UI/Microsoft.PowerToys.Settings.UI.csproj @@ -1,250 +1,250 @@ - - - - - Debug - x64 - {A7D5099E-F0FD-4BF3-8522-5A682759F915} - AppContainerExe - Properties - Microsoft.PowerToys.Settings.UI - Microsoft.PowerToys.Settings.UI - en-US - UAP - 10.0.18362.0 - 10.0.18362.0 - 14 - 512 - {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - true - false - - - true - ..\..\..\x64\Debug\SettingsUI\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x64 - false - prompt - true - - - ..\..\..\x64\Release\SettingsUI\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x64 - false - prompt - true - true - - - PackageReference - - - - GlobalSuppressions.cs - - - - - App.xaml - - - - - HotkeySettingsControl.xaml - - - - - - - - - - - - - - - - - - - - - - GeneralPage.xaml - - - ImageResizerPage.xaml - - - KeyboardManagerPage.xaml - - - PowerLauncherPage.xaml - - - PowerPreviewPage.xaml - - - FancyZonesPage.xaml - - - PowerRenamePage.xaml - - - ShellPage.xaml - - - ShortcutGuidePage.xaml - - - - - Designer - - - - - - - - - - - - - - - MSBuild:Compile - Designer - - - - - 6.2.9 - - - 6.0.0 - - - 6.0.0 - - - 2.4.0-prerelease.191217001 - - - 2.0.1 - - - 12.0.3 - - - 1.1.118 - runtime; build; native; contentfiles; analyzers; buildtransitive - all - - - - - - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - Designer - MSBuild:Compile - - - - - {b1bcc8c6-46b5-4bfa-8f22-20f32d99ec6a} - Microsoft.PowerToys.Settings.UI.Lib - - - - - StyleCop.json - - - - 14.0 - - - false - false - - + + + + + Debug + x64 + {A7D5099E-F0FD-4BF3-8522-5A682759F915} + AppContainerExe + Properties + Microsoft.PowerToys.Settings.UI + Microsoft.PowerToys.Settings.UI + en-US + UAP + 10.0.18362.0 + 10.0.18362.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + true + false + + + true + ..\..\..\x64\Debug\SettingsUI\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + ..\..\..\x64\Release\SettingsUI\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + false + + + PackageReference + + + + GlobalSuppressions.cs + + + + + App.xaml + + + + + HotkeySettingsControl.xaml + + + + + + + + + + + + + + + + + + + + + + GeneralPage.xaml + + + ImageResizerPage.xaml + + + KeyboardManagerPage.xaml + + + PowerLauncherPage.xaml + + + PowerPreviewPage.xaml + + + FancyZonesPage.xaml + + + PowerRenamePage.xaml + + + ShellPage.xaml + + + ShortcutGuidePage.xaml + + + + + Designer + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + + + 6.2.9 + + + 6.0.0 + + + 6.0.0 + + + 2.4.0-prerelease.191217001 + + + 2.0.1 + + + 12.0.3 + + + 1.1.118 + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + + + + + {b1bcc8c6-46b5-4bfa-8f22-20f32d99ec6a} + Microsoft.PowerToys.Settings.UI.Lib + + + + + StyleCop.json + + + + 14.0 + + + false + false + + + --> \ No newline at end of file diff --git a/src/core/Microsoft.PowerToys.Settings.UnitTest/Microsoft.PowerToys.Settings.UnitTest.csproj b/src/core/Microsoft.PowerToys.Settings.UnitTest/Microsoft.PowerToys.Settings.UnitTest.csproj index ed0726395e..98844b2ba4 100644 --- a/src/core/Microsoft.PowerToys.Settings.UnitTest/Microsoft.PowerToys.Settings.UnitTest.csproj +++ b/src/core/Microsoft.PowerToys.Settings.UnitTest/Microsoft.PowerToys.Settings.UnitTest.csproj @@ -1,184 +1,184 @@ - - - - - Debug - x86 - {A80355C2-780D-4245-BD80-25B8DE698EE3} - AppContainerExe - Properties - Microsoft.PowerToys.Settings.UnitTest - Microsoft.PowerToys.Settings.UnitTest - en-US - UAP - 10.0.18362.0 - 10.0.18362.0 - 14 - 512 - {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - $(VisualStudioVersion) - false - - - true - bin\x86\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x86 - false - prompt - true - - - bin\x86\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x86 - false - prompt - true - true - - - true - bin\ARM\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - ARM - false - prompt - true - - - bin\ARM\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - ARM - false - prompt - true - true - - - true - bin\ARM64\Debug\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - ARM64 - false - prompt - true - true - - - bin\ARM64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - ARM64 - false - prompt - true - true - - - true - bin\x64\Debug\Test\ - DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP - ;2008 - full - x64 - false - prompt - true - - - bin\x64\Release\ - TRACE;NETFX_CORE;WINDOWS_UWP - true - ;2008 - pdbonly - x64 - false - prompt - true - true - - - PackageReference - - - - - - - - - - - UnitTestApp.xaml - - - - - - MSBuild:Compile - Designer - - - - - Designer - - - - - - - - - - - - - - 6.2.9 - - - 2.1.1 - - - 2.1.1 - - - - - {b1bcc8c6-46b5-4bfa-8f22-20f32d99ec6a} - Microsoft.PowerToys.Settings.UI.Lib - - - {a7d5099e-f0fd-4bf3-8522-5a682759f915} - Microsoft.PowerToys.Settings.UI - - - - - 14.0 - - + + + + + Debug + x86 + {A80355C2-780D-4245-BD80-25B8DE698EE3} + AppContainerExe + Properties + Microsoft.PowerToys.Settings.UnitTest + Microsoft.PowerToys.Settings.UnitTest + en-US + UAP + 10.0.18362.0 + 10.0.18362.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + $(VisualStudioVersion) + false + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + true + true + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + true + true + + + true + bin\ARM64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM64 + false + prompt + true + true + + + bin\ARM64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM64 + false + prompt + true + true + + + true + bin\x64\Debug\Test\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + false + + + PackageReference + + + + + + + + + + + UnitTestApp.xaml + + + + + + MSBuild:Compile + Designer + + + + + Designer + + + + + + + + + + + + + + 6.2.9 + + + 2.1.1 + + + 2.1.1 + + + + + {b1bcc8c6-46b5-4bfa-8f22-20f32d99ec6a} + Microsoft.PowerToys.Settings.UI.Lib + + + {a7d5099e-f0fd-4bf3-8522-5a682759f915} + Microsoft.PowerToys.Settings.UI + + + + + 14.0 + + + --> \ No newline at end of file