From 628d889fe0aa5845376369fb4368abfd4da537c3 Mon Sep 17 00:00:00 2001 From: Abdelwahab Afifi Date: Thu, 16 Nov 2023 17:41:59 +0200 Subject: [PATCH] Update WCF sample CustomBinding/Imperative to support .NET Core --- .../CS/client/Properties/AssemblyInfo.cs | 34 ----- .../client/Properties/Resources.Designer.cs | 63 ---------- .../CS/client/Properties/Resources.resx | 117 ------------------ .../CS/client/Properties/Settings.Designer.cs | 26 ---- .../CS/client/Properties/Settings.settings | 7 -- .../Custom/Imperative/CS/client/app.config | 3 - .../Custom/Imperative/CS/client/client.csproj | 75 +++-------- .../Custom/Imperative/CS/service/app.config | 3 - .../Imperative/CS/service/service.csproj | 17 +-- 9 files changed, 18 insertions(+), 327 deletions(-) delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/AssemblyInfo.cs delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.Designer.cs delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.resx delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.Designer.cs delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.settings delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/client/app.config delete mode 100644 framework/wcf/Basic/Binding/Custom/Imperative/CS/service/app.config diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/AssemblyInfo.cs b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/AssemblyInfo.cs deleted file mode 100644 index e5700242912..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,34 +0,0 @@ -#region Using directives - -using System; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Security.Permissions; - -#endregion - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: ComVisible(false)] -[assembly: CLSCompliant(true)] -[assembly: AssemblyTitle("client")] -[assembly: AssemblyDescription("Imperative")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("client")] -[assembly: AssemblyCopyright("Copyright @ Microsoft 2004")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.*")] diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.Designer.cs b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.Designer.cs deleted file mode 100644 index 4eb0b8a8160..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.Designer.cs +++ /dev/null @@ -1,63 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.21006.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // 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.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } -} diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.resx b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.resx deleted file mode 100644 index fe52bb6e966..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.Designer.cs b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.Designer.cs deleted file mode 100644 index f498f4c9c42..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.21006.1 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.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/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.settings b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.settings deleted file mode 100644 index 099a656bee6..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/app.config b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/app.config deleted file mode 100644 index e3656033377..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/client.csproj b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/client.csproj index a725368cd97..856a6c3b929 100644 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/client.csproj +++ b/framework/wcf/Basic/Binding/Custom/Imperative/CS/client/client.csproj @@ -1,67 +1,20 @@ - - + - Debug - AnyCPU - 8.0.50215 - 2.0 - {F6D8FC2E-62D0-4554-AC3E-1964042590E3} + net462;net6.0 Exe - - - client - 4 - v4.0 - - - - - 2.0 - + Client + Imperative + Microsoft Corporation + Windows Communication Foundation and Windows Workflow Foundation SDK + Copyright (c) Microsoft Corporation - - true - full - false - bin\ - DEBUG;TRACE - - - false - true - bin\ - TRACE - - - - + + - - - - - - True - True - Settings.settings - - - ResXFileCodeGenerator - Designer - Resources.Designer.cs - - - True - True - Resources.resx - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - + + + + - - \ No newline at end of file + diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/app.config b/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/app.config deleted file mode 100644 index e3656033377..00000000000 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/service.csproj b/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/service.csproj index c268c11bdce..3c1389bfc33 100644 --- a/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/service.csproj +++ b/framework/wcf/Basic/Binding/Custom/Imperative/CS/service/service.csproj @@ -1,22 +1,16 @@  - + + Debug AnyCPU 8.0.50727 - 2.0 {66C5F965-7C66-479A-9960-A3CA6080A71B} Exe Properties service service - v4.0 - - - - - 2.0 - + v4.6.2 true @@ -45,8 +39,5 @@ - - - - + \ No newline at end of file