From 0cdbef1d44c953beacd78384f51e1aa079710936 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 22 Jan 2021 14:58:40 +1000 Subject: [PATCH] Test/Example - Upgrade to .Net 4.7.2 - Update .vsconfig to include the .Net 4.7.2 requirement and add the Net Core 3.1 feature. --- .vsconfig | 7 +- CefSharp.Example/CefSharp.Example.csproj | 2 +- .../Properties/Resources.Designer.cs | 75 ++++++++-------- .../CefSharp.OffScreen.Example.csproj | 2 +- CefSharp.OffScreen.Example/app.config | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/app.config | 30 +++---- CefSharp.Test/packages.config | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../Properties/Resources.Designer.cs | 86 ++++++++----------- CefSharp.WinForms.Example/app.config | 2 +- 11 files changed, 98 insertions(+), 114 deletions(-) diff --git a/.vsconfig b/.vsconfig index 5ea1c2baa..3f6b51268 100644 --- a/.vsconfig +++ b/.vsconfig @@ -4,7 +4,7 @@ "Microsoft.VisualStudio.Component.CoreEditor", "Microsoft.VisualStudio.Workload.CoreEditor", "Microsoft.VisualStudio.Component.NuGet", - "Microsoft.Net.Component.4.6.1.TargetingPack", + "Microsoft.Net.Component.4.7.2.TargetingPack", "Microsoft.VisualStudio.Component.Roslyn.Compiler", "Microsoft.VisualStudio.Component.Roslyn.LanguageServices", "Microsoft.Net.ComponentGroup.DevelopmentPrerequisites", @@ -24,6 +24,9 @@ "Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core", "Microsoft.VisualStudio.Component.VC.CLI.Support", "Microsoft.VisualStudio.Component.Windows10SDK.18362", - "Microsoft.VisualStudio.Workload.NativeDesktop" + "Microsoft.VisualStudio.Workload.NativeDesktop", + "Microsoft.NetCore.Component.DevelopmentTools", + "Microsoft.NetCore.Component.Runtime.3.1", + "Microsoft.NetCore.Component.SDK" ] } \ No newline at end of file diff --git a/CefSharp.Example/CefSharp.Example.csproj b/CefSharp.Example/CefSharp.Example.csproj index f917b6234..dbacb4aa8 100644 --- a/CefSharp.Example/CefSharp.Example.csproj +++ b/CefSharp.Example/CefSharp.Example.csproj @@ -10,7 +10,7 @@ Properties CefSharp.Example CefSharp.Example - v4.6.2 + v4.7.2 512 diff --git a/CefSharp.Example/Properties/Resources.Designer.cs b/CefSharp.Example/Properties/Resources.Designer.cs index 661bdd76f..34bcebd0b 100644 --- a/CefSharp.Example/Properties/Resources.Designer.cs +++ b/CefSharp.Example/Properties/Resources.Designer.cs @@ -19,7 +19,7 @@ namespace CefSharp.Example.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", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] public class Resources { @@ -324,7 +324,7 @@ namespace CefSharp.Example.Properties { /// (async function() { /// // <embed user provided code here> /// - /// await CefSharp.BindObjectAsync("boundAsy [rest of string was truncated]";. + /// await CefSharp.BindObjectAsync("boundA [rest of string was truncated]";. /// public static string BindingTest { get { @@ -333,23 +333,20 @@ namespace CefSharp.Example.Properties { } /// - /// Looks up a localized string similar to (async () => + /// Looks up a localized string similar to QUnit.module('BindingTestAsync', (hooks) => ///{ - /// // Verify that two objects are completely equal - /// function deepEqual(x, y) + /// hooks.before(async () => /// { - /// if ((typeof x == "object" && x != null) && (typeof y == "object" && y != null)) - /// { - /// for (var prop in x) - /// { - /// if (prop in y && (Object.keys(x).length === Object.keys(y).length)) - /// { - /// return deepEqual(x[prop], y[prop]); - /// } - /// else - /// { - /// return false; - /// [rest of string was truncated]";. + /// await CefSharp.BindObjectAsync("boundAsync"); + /// }); + /// + /// QUnit.test("BindObjectAsync Second call with boundAsync param", async (assert) => + /// { + /// const res = await CefSharp.BindObjectAsync("boundAsync"); + /// assert.equal(res.Success, false, "Second call to BindObjectAsync with already bound objects as params returned false."); + /// }); + /// + /// QUnit.test("Async call (Throw .Net Exception)", async ( [rest of string was truncated]";. /// public static string BindingTestAsync { get { @@ -373,7 +370,7 @@ namespace CefSharp.Example.Properties { /// (async function() { /// // <embed user provided code here> /// - /// await CefSharp.BindObjectAsyn [rest of string was truncated]";. + /// await CefSharp.BindObjectAs [rest of string was truncated]";. /// public static string BindingTestNetCore { get { @@ -398,19 +395,19 @@ namespace CefSharp.Example.Properties { /// <div id="qunit-fixture"></div> /// <script src="https://code.jquery.com/qunit/qunit-2.10.0.js"></script> /// - /// [rest of string was truncated]";. + /// [rest of string was truncated]";. /// public static string BindingTestsAsyncTask { get { return ResourceManager.GetString("BindingTestsAsyncTask", resourceCulture); } } - + /// /// Looks up a localized string similar to <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ///<html> ///<head> - /// <title>Binding Test</title> + /// <title>Binding Test Single</title> /// <link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.10.0.css"> ///</head> ///<body> @@ -419,11 +416,11 @@ namespace CefSharp.Example.Properties { /// <script src="https://code.jquery.com/qunit/qunit-2.10.0.js"></script> /// /// <script type="text/javascript"> - /// (async () => + /// QUnit.module('BindingTestSingle', (hooks) => + /// { + /// hooks.before(async () => /// { - /// await CefSharp.BindObjectAsync("boundAsync"); - /// - /// QUnit.test("Async [rest of string was truncated]";. + /// [rest of string was truncated]";. /// public static string BindingTestSingle { get { @@ -432,21 +429,23 @@ namespace CefSharp.Example.Properties { } /// - /// Looks up a localized string similar to (async () => + /// Looks up a localized string similar to QUnit.module('BindingTestSync', (hooks) => ///{ - /// await CefSharp.BindObjectAsync("bound"); - /// - /// QUnit.test("BindObjectAsync Second call with Bound param", function (assert) + /// hooks.before(async () => /// { - /// let asyncCallback = assert.async(); - /// CefSharp.BindObjectAsync("bound").then(function (res) - /// { - /// assert.equal(res.Success, false, "Second call to BindObjectAsync with already bound objects as params returned false."); - /// asyncCallback(); - /// }); + /// await CefSharp.BindObjectAsync("bound"); /// }); /// - /// QUnit.test("bound.repeat('hi ', 5)", function ( [rest of string was truncated]";. + /// QUnit.test("BindObjectAsync Second call with Bound param", async (assert) => + /// { + /// const res = await CefSharp.BindObjectAsync("bound"); + /// + /// assert.equal(res.Success, false, "Second call to BindObjectAsync with already bound objects as params returned false."); + /// }); + /// + /// QUnit.test("bound.repeat('hi ', 5)", function (assert) + /// { + /// [rest of string was truncated]";. /// public static string BindingTestSync { get { @@ -704,7 +703,7 @@ namespace CefSharp.Example.Properties { /// <script type="text/javascript"> /// (function() /// { - /// QUnit.test( "bound.repea [rest of string was truncated]";. + /// QUnit.test( "bound.rep [rest of string was truncated]";. /// public static string LegacyBindingTest { get { @@ -772,7 +771,7 @@ namespace CefSharp.Example.Properties { /// /// (async () => /// { - /// [rest of string was truncated]";. + /// [rest of string was truncated]";. /// public static string PostMessageTest { get { diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index e6390e39c..df0431f19 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -12,7 +12,7 @@ Properties CefSharp.OffScreen.Example CefSharp.OffScreen.Example - v4.6.2 + v4.7.2 512 diff --git a/CefSharp.OffScreen.Example/app.config b/CefSharp.OffScreen.Example/app.config index ac5aa757c..5c22b42e5 100644 --- a/CefSharp.OffScreen.Example/app.config +++ b/CefSharp.OffScreen.Example/app.config @@ -1,3 +1,3 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 93df9bd8b..c076efa90 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -14,7 +14,7 @@ Properties CefSharp.Test CefSharp.Test - v4.6.2 + v4.7.2 512 7.3 Client diff --git a/CefSharp.Test/app.config b/CefSharp.Test/app.config index e04452a4c..a524c32f9 100644 --- a/CefSharp.Test/app.config +++ b/CefSharp.Test/app.config @@ -1,34 +1,34 @@ - + - + - - - + + + - - + + - - + + - - + + - - + + - - + + diff --git a/CefSharp.Test/packages.config b/CefSharp.Test/packages.config index b1ed1ad48..803c5f9a5 100644 --- a/CefSharp.Test/packages.config +++ b/CefSharp.Test/packages.config @@ -5,7 +5,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 642b05210..0a6cffe2c 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -13,7 +13,7 @@ Properties CefSharp.WinForms.Example CefSharp.WinForms.Example - v4.6.2 + v4.7.2 512 diff --git a/CefSharp.WinForms.Example/Properties/Resources.Designer.cs b/CefSharp.WinForms.Example/Properties/Resources.Designer.cs index 4f3b07f26..8405d4c79 100644 --- a/CefSharp.WinForms.Example/Properties/Resources.Designer.cs +++ b/CefSharp.WinForms.Example/Properties/Resources.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 @@ -8,10 +8,10 @@ // //------------------------------------------------------------------------------ -namespace CefSharp.WinForms.Example.Properties -{ - - +namespace CefSharp.WinForms.Example.Properties { + using System; + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -19,110 +19,92 @@ namespace CefSharp.WinForms.Example.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", "16.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - + 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() - { + 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)) - { + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CefSharp.WinForms.Example.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 - { + internal static global::System.Globalization.CultureInfo Culture { + get { return resourceCulture; } - set - { + set { resourceCulture = value; } } - + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap chromium256 - { - get - { + internal static System.Drawing.Bitmap chromium256 { + get { object obj = ResourceManager.GetObject("chromium256", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } - + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap nav_left_green - { - get - { + internal static System.Drawing.Bitmap nav_left_green { + get { object obj = ResourceManager.GetObject("nav_left_green", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } - + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap nav_plain_green - { - get - { + internal static System.Drawing.Bitmap nav_plain_green { + get { object obj = ResourceManager.GetObject("nav_plain_green", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } - + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap nav_plain_red - { - get - { + internal static System.Drawing.Bitmap nav_plain_red { + get { object obj = ResourceManager.GetObject("nav_plain_red", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } - + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal static System.Drawing.Bitmap nav_right_green - { - get - { + internal static System.Drawing.Bitmap nav_right_green { + get { object obj = ResourceManager.GetObject("nav_right_green", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } diff --git a/CefSharp.WinForms.Example/app.config b/CefSharp.WinForms.Example/app.config index ac5aa757c..5c22b42e5 100644 --- a/CefSharp.WinForms.Example/app.config +++ b/CefSharp.WinForms.Example/app.config @@ -1,3 +1,3 @@ - +