From 921c0fa5f6bf585c5745059470b8d9e89369f267 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Wed, 24 Apr 2019 19:31:14 +0200 Subject: [PATCH] Raise .NET target version to 4.6 This sets the target .NET framework version to 4.6. The Prefer32Bit option was introduced with .NET 4. When set to true this will generate x86 machine code on a 64-bit system, but this only affects projects where the platform target is set to Any CPU. CMake generates the project based on the system. Since the Prefer32Bit option was auto generated during the switch to the new .NET version I ensured this is explicitly set to false. refs #7090 --- .../windows-setup-agent/Icinga2SetupAgent.csproj | 16 ++++++++++++++-- .../Properties/Resources.Designer.cs | 4 ++-- .../Properties/Settings.Designer.cs | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/agent/windows-setup-agent/Icinga2SetupAgent.csproj b/agent/windows-setup-agent/Icinga2SetupAgent.csproj index 8778af498..17fe54ff5 100644 --- a/agent/windows-setup-agent/Icinga2SetupAgent.csproj +++ b/agent/windows-setup-agent/Icinga2SetupAgent.csproj @@ -9,7 +9,7 @@ Properties Icinga Icinga2SetupAgent - v2.0 + v4.6 512 publish\ @@ -37,6 +37,7 @@ DEBUG;TRACE prompt 4 + false x86 @@ -46,6 +47,7 @@ TRACE prompt 4 + false x86 @@ -55,6 +57,7 @@ TRACE prompt 4 + false x86 @@ -64,6 +67,7 @@ TRACE prompt 4 + false x86 @@ -74,6 +78,7 @@ DEBUG;TRACE prompt 4 + false x86 @@ -83,6 +88,7 @@ TRACE prompt 4 + false x86 @@ -92,6 +98,7 @@ TRACE prompt 4 + false x86 @@ -101,6 +108,7 @@ TRACE prompt 4 + false x64 @@ -111,6 +119,7 @@ DEBUG;TRACE prompt 4 + false x64 @@ -120,6 +129,7 @@ TRACE prompt 4 + false x64 @@ -129,6 +139,7 @@ TRACE prompt 4 + false x64 @@ -138,6 +149,7 @@ TRACE prompt 4 + false icinga.ico @@ -247,4 +259,4 @@ --> - + \ No newline at end of file diff --git a/agent/windows-setup-agent/Properties/Resources.Designer.cs b/agent/windows-setup-agent/Properties/Resources.Designer.cs index cb365d286..78be5e910 100644 --- a/agent/windows-setup-agent/Properties/Resources.Designer.cs +++ b/agent/windows-setup-agent/Properties/Resources.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34011 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -19,7 +19,7 @@ namespace Icinga.Properties { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/agent/windows-setup-agent/Properties/Settings.Designer.cs b/agent/windows-setup-agent/Properties/Settings.Designer.cs index f1515dde6..ad169dae3 100644 --- a/agent/windows-setup-agent/Properties/Settings.Designer.cs +++ b/agent/windows-setup-agent/Properties/Settings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34011 +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -12,7 +12,7 @@ namespace Icinga.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));