diff options
author | Miguel Costa <miguel.costa@qt.io> | 2023-01-17 14:09:03 +0100 |
---|---|---|
committer | Miguel Costa <miguel.costa@qt.io> | 2023-01-18 11:29:36 +0000 |
commit | aef9ae52bd8264be639dbc87f538e9d6ad3f37b1 (patch) | |
tree | a06c64509bfe90a43f8c331fdd281d144774ff8e | |
parent | 9ecc429683b66c2d6dcd096d9f7b40d17ebebe25 (diff) |
Disable update project notification
Change-Id: Icbd6743aa3266f7f9e2d2c15f67e6a09e364840c
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
-rw-r--r-- | QtVsTools.Package/Options/QtOptionsPage.cs | 10 | ||||
-rw-r--r-- | QtVsTools.Package/QtVsTools.Package.csproj | 4 |
2 files changed, 10 insertions, 4 deletions
diff --git a/QtVsTools.Package/Options/QtOptionsPage.cs b/QtVsTools.Package/Options/QtOptionsPage.cs index 82a1d20c..147b8d42 100644 --- a/QtVsTools.Package/Options/QtOptionsPage.cs +++ b/QtVsTools.Package/Options/QtOptionsPage.cs @@ -244,8 +244,14 @@ namespace QtVsTools.Options [Description("Show notification when a project uses some legacy code path of the Qt " + "Visual Studio Tools.")] [TypeConverter(typeof(EnableDisableConverter))] - public bool UpdateProjectFormat { get; set; } - + public bool UpdateProjectFormat + { +#if DISABLE_UPDATEPROJECTFORMAT + get => false; set { } +#else + get; set; +#endif + } [Category("Natvis")] [DisplayName("Embed .natvis file into PDB")] [Description("Embeds the debugger visualizations (.natvis file) into the PDB file" diff --git a/QtVsTools.Package/QtVsTools.Package.csproj b/QtVsTools.Package/QtVsTools.Package.csproj index ebfdde49..39a86dcb 100644 --- a/QtVsTools.Package/QtVsTools.Package.csproj +++ b/QtVsTools.Package/QtVsTools.Package.csproj @@ -68,7 +68,7 @@ <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug\</OutputPath> - <DefineConstants>TRACE;DEBUG</DefineConstants> + <DefineConstants>TRACE;DEBUG;DISABLE_UPDATEPROJECTFORMAT</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> @@ -76,7 +76,7 @@ <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\Release\</OutputPath> - <DefineConstants>TRACE</DefineConstants> + <DefineConstants>TRACE;DISABLE_UPDATEPROJECTFORMAT</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> |