From 87f3d1e099bc010b80547b5cc03c69228e12536d Mon Sep 17 00:00:00 2001 From: Karsten Heimrich Date: Tue, 22 Feb 2022 14:36:53 +0100 Subject: Re-enable designing XAML files in Visual Studio * Add missing system references * Remove wrapper around VisualStudio.PlatformUI.DialogWindow * Depend on the right version of Microsoft.VisualStudio.Shell.15.0 Change-Id: Iadbbe9ac1f1cb28fe0bb7b3b16ca49b4507ab2a9 Reviewed-by: Miguel Costa --- QtVsTools.Package/Common/VsToolsDialogWindow.cs | 35 ------------------ QtVsTools.Package/Package/QtHelpLinkChooser.xaml | 42 +++++++++++----------- .../Package/QtHelpLinkChooser.xaml.cs | 5 +-- QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml | 8 ++--- QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs | 5 +-- QtVsTools.Package/QtVsTools.Package.csproj | 6 ++-- references.props | 4 +++ 7 files changed, 39 insertions(+), 66 deletions(-) delete mode 100644 QtVsTools.Package/Common/VsToolsDialogWindow.cs diff --git a/QtVsTools.Package/Common/VsToolsDialogWindow.cs b/QtVsTools.Package/Common/VsToolsDialogWindow.cs deleted file mode 100644 index 0d08f0c6..00000000 --- a/QtVsTools.Package/Common/VsToolsDialogWindow.cs +++ /dev/null @@ -1,35 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2021 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the Qt VS Tools. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -namespace QtVsTools -{ - public class VsToolsDialogWindow : Microsoft.VisualStudio.PlatformUI.DialogWindow - { - // Workaround to avoid referencing Microsoft.VisualStudio.Shell.14.0 in XAML. - } -} diff --git a/QtVsTools.Package/Package/QtHelpLinkChooser.xaml b/QtVsTools.Package/Package/QtHelpLinkChooser.xaml index 18d9471f..d9d6a1d6 100644 --- a/QtVsTools.Package/Package/QtHelpLinkChooser.xaml +++ b/QtVsTools.Package/Package/QtHelpLinkChooser.xaml @@ -1,7 +1,7 @@  - - + + - + @@ -104,4 +104,4 @@ Margin="0,10,0,0" /> - + diff --git a/QtVsTools.Package/Package/QtHelpLinkChooser.xaml.cs b/QtVsTools.Package/Package/QtHelpLinkChooser.xaml.cs index fd8e5a4c..32b46387 100644 --- a/QtVsTools.Package/Package/QtHelpLinkChooser.xaml.cs +++ b/QtVsTools.Package/Package/QtHelpLinkChooser.xaml.cs @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt VS Tools. @@ -32,10 +32,11 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Input; +using Microsoft.VisualStudio.PlatformUI; namespace QtVsTools { - partial class QtHelpLinkChooser : VsToolsDialogWindow + partial class QtHelpLinkChooser : DialogWindow { public QtHelpLinkChooser() { diff --git a/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml b/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml index 0fb4d4a7..0cfabcb6 100644 --- a/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml +++ b/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml @@ -1,7 +1,7 @@  -_Cancel - + diff --git a/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs b/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs index 463c85c9..fa835723 100644 --- a/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs +++ b/QtVsTools.Package/QtMsBuild/QtModulesPopup.xaml.cs @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2021 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt VS Tools. @@ -30,10 +30,11 @@ using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Input; +using Microsoft.VisualStudio.PlatformUI; namespace QtVsTools.QtMsBuild { - public partial class QtModulesPopup : VsToolsDialogWindow + public partial class QtModulesPopup : DialogWindow { public class Module { diff --git a/QtVsTools.Package/QtVsTools.Package.csproj b/QtVsTools.Package/QtVsTools.Package.csproj index fa60dd43..cbb2b746 100644 --- a/QtVsTools.Package/QtVsTools.Package.csproj +++ b/QtVsTools.Package/QtVsTools.Package.csproj @@ -90,6 +90,8 @@ + + @@ -104,7 +106,8 @@ - + + @@ -54,6 +56,7 @@ 16.2.133-pre 16.10.31320.204 16.10.31320.204 + 16.10.31321.278 @@ -65,6 +68,7 @@ 5.0.0 15.8.243 15.9.28307 + 15.9.28307 -- cgit v1.2.3