From ce71c8a4a0fcb67ebd473a1d634f7035778b8a2f Mon Sep 17 00:00:00 2001 From: Michael Mell <michael.mell@unibas.ch> Date: Tue, 20 Feb 2024 16:39:53 +0100 Subject: [PATCH] Build project into Visual Studio 2022 - Bump .Net framework to 4.8 - Fix build errors after import into VS 2022 --- ATxCommon/ATxCommon.csproj | 3 ++- ATxConfigTest/ATXConfigTest.csproj | 3 ++- ATxConfigTest/App.config | 6 ++--- ATxDiagnostics/ATxDiagnostics.csproj | 2 +- ATxDiagnostics/App.config | 2 +- ATxService/ATxService.csproj | 12 +++++++++- ATxService/App.config | 6 ++--- ATxService/Properties/Resources.Designer.cs | 2 +- ATxService/Properties/Settings.Designer.cs | 26 +++++++++++++++++++++ ATxService/Properties/Settings.settings | 6 +++++ ATxTray/ATXTray.csproj | 15 ++++++------ ATxTray/App.config | 6 ++--- ATxTray/Properties/Resources.Designer.cs | 2 +- ATxTray/Properties/Settings.Designer.cs | 2 +- AutoTx.sln.DotSettings | 1 + 15 files changed, 70 insertions(+), 24 deletions(-) create mode 100644 ATxService/Properties/Settings.Designer.cs create mode 100644 ATxService/Properties/Settings.settings diff --git a/ATxCommon/ATxCommon.csproj b/ATxCommon/ATxCommon.csproj index 40c19c2..356e5cc 100644 --- a/ATxCommon/ATxCommon.csproj +++ b/ATxCommon/ATxCommon.csproj @@ -9,8 +9,9 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>ATxCommon</RootNamespace> <AssemblyName>ATxCommon</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> + <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> diff --git a/ATxConfigTest/ATXConfigTest.csproj b/ATxConfigTest/ATXConfigTest.csproj index f4eb1e9..445f485 100644 --- a/ATxConfigTest/ATXConfigTest.csproj +++ b/ATxConfigTest/ATXConfigTest.csproj @@ -9,8 +9,9 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>ATxConfigTest</RootNamespace> <AssemblyName>AutoTxConfigTest</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> + <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> diff --git a/ATxConfigTest/App.config b/ATxConfigTest/App.config index 8e15646..4bfa005 100644 --- a/ATxConfigTest/App.config +++ b/ATxConfigTest/App.config @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="utf-8" ?> +<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> - <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> </startup> -</configuration> \ No newline at end of file +</configuration> diff --git a/ATxDiagnostics/ATxDiagnostics.csproj b/ATxDiagnostics/ATxDiagnostics.csproj index 140cd0f..bab54c8 100644 --- a/ATxDiagnostics/ATxDiagnostics.csproj +++ b/ATxDiagnostics/ATxDiagnostics.csproj @@ -8,7 +8,7 @@ <OutputType>Exe</OutputType> <RootNamespace>ATxDiagnostics</RootNamespace> <AssemblyName>AutoTxDiagnostics</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <TargetFrameworkProfile /> diff --git a/ATxDiagnostics/App.config b/ATxDiagnostics/App.config index d1428ad..4bfa005 100644 --- a/ATxDiagnostics/App.config +++ b/ATxDiagnostics/App.config @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <configuration> <startup> - <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> </startup> </configuration> diff --git a/ATxService/ATxService.csproj b/ATxService/ATxService.csproj index 0df73e7..968226f 100644 --- a/ATxService/ATxService.csproj +++ b/ATxService/ATxService.csproj @@ -9,7 +9,7 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>ATxService</RootNamespace> <AssemblyName>AutoTx</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> <IsWebBootstrapper>false</IsWebBootstrapper> <PublishUrl>publish\</PublishUrl> @@ -26,6 +26,7 @@ <ApplicationVersion>1.0.0.%2a</ApplicationVersion> <UseApplicationTrust>false</UseApplicationTrust> <BootstrapperEnabled>true</BootstrapperEnabled> + <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> @@ -88,12 +89,21 @@ <DesignTime>True</DesignTime> <DependentUpon>Resources.resx</DependentUpon> </Compile> + <Compile Include="Properties\Settings.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + <DependentUpon>Settings.settings</DependentUpon> + </Compile> <Compile Include="RoboCommand.cs"> <SubType>Component</SubType> </Compile> </ItemGroup> <ItemGroup> <None Include="App.config" /> + <None Include="Properties\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <LastGenOutput>Settings.Designer.cs</LastGenOutput> + </None> </ItemGroup> <ItemGroup> <EmbeddedResource Include="AutoTx.resx"> diff --git a/ATxService/App.config b/ATxService/App.config index 8e15646..4bfa005 100644 --- a/ATxService/App.config +++ b/ATxService/App.config @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="utf-8" ?> +<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> - <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> </startup> -</configuration> \ No newline at end of file +</configuration> diff --git a/ATxService/Properties/Resources.Designer.cs b/ATxService/Properties/Resources.Designer.cs index f51568b..0bdfe0d 100644 --- a/ATxService/Properties/Resources.Designer.cs +++ b/ATxService/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace ATxService.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", "15.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/ATxService/Properties/Settings.Designer.cs b/ATxService/Properties/Settings.Designer.cs new file mode 100644 index 0000000..c7c192f --- /dev/null +++ b/ATxService/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace ATxService.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.9.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/ATxService/Properties/Settings.settings b/ATxService/Properties/Settings.settings new file mode 100644 index 0000000..049245f --- /dev/null +++ b/ATxService/Properties/Settings.settings @@ -0,0 +1,6 @@ +<?xml version='1.0' encoding='utf-8'?> +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> + <Profiles> + <Profile Name="(Default)" /> + </Profiles> +</SettingsFile> diff --git a/ATxTray/ATXTray.csproj b/ATxTray/ATXTray.csproj index 610b55d..f5ef4c7 100644 --- a/ATxTray/ATXTray.csproj +++ b/ATxTray/ATXTray.csproj @@ -9,8 +9,9 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>ATxTray</RootNamespace> <AssemblyName>ATxTray</AssemblyName> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <TargetFrameworkVersion>v4.8</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> + <TargetFrameworkProfile /> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> @@ -66,19 +67,19 @@ <Compile Include="Properties\AssemblyInfo.cs" /> <EmbeddedResource Include="Properties\Resources.resx"> <Generator>ResXFileCodeGenerator</Generator> - <LastGenOutput>Resources.Designer.cs</LastGenOutput> <SubType>Designer</SubType> + <LastGenOutput>Resources.Designer.cs</LastGenOutput> </EmbeddedResource> - <Compile Include="Properties\Resources.Designer.cs"> - <AutoGen>True</AutoGen> - <DependentUpon>Resources.resx</DependentUpon> - <DesignTime>True</DesignTime> - </Compile> <None Include="packages.config" /> <None Include="Properties\Settings.settings"> <Generator>SettingsSingleFileGenerator</Generator> <LastGenOutput>Settings.Designer.cs</LastGenOutput> </None> + <Compile Include="Properties\Resources.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>Resources.resx</DependentUpon> + </Compile> <Compile Include="Properties\Settings.Designer.cs"> <AutoGen>True</AutoGen> <DependentUpon>Settings.settings</DependentUpon> diff --git a/ATxTray/App.config b/ATxTray/App.config index 8e15646..4bfa005 100644 --- a/ATxTray/App.config +++ b/ATxTray/App.config @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="utf-8" ?> +<?xml version="1.0" encoding="utf-8"?> <configuration> <startup> - <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/> </startup> -</configuration> \ No newline at end of file +</configuration> diff --git a/ATxTray/Properties/Resources.Designer.cs b/ATxTray/Properties/Resources.Designer.cs index ea2b148..7b75580 100644 --- a/ATxTray/Properties/Resources.Designer.cs +++ b/ATxTray/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace ATxTray.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", "15.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { diff --git a/ATxTray/Properties/Settings.Designer.cs b/ATxTray/Properties/Settings.Designer.cs index d42e625..bbe2d37 100644 --- a/ATxTray/Properties/Settings.Designer.cs +++ b/ATxTray/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace ATxTray.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", "17.9.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); diff --git a/AutoTx.sln.DotSettings b/AutoTx.sln.DotSettings index bf428cd..ae5109c 100644 --- a/AutoTx.sln.DotSettings +++ b/AutoTx.sln.DotSettings @@ -21,6 +21,7 @@ <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean> <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean> <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpRenamePlacementToArrangementMigration/@EntryIndexedValue">True</s:Boolean> + <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean> <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002ECSharpPlaceAttributeOnSameLineMigration/@EntryIndexedValue">True</s:Boolean> <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean> <s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateThisQualifierSettings/@EntryIndexedValue">True</s:Boolean> -- GitLab