diff --git a/src/Uno.UI.Adapter.Microsoft.Extensions.Logging/Uno.UI.Adapter.Microsoft.Extensions.Logging.csproj b/src/Uno.UI.Adapter.Microsoft.Extensions.Logging/Uno.UI.Adapter.Microsoft.Extensions.Logging.csproj index 1add0dae5719..01b747361c4b 100644 --- a/src/Uno.UI.Adapter.Microsoft.Extensions.Logging/Uno.UI.Adapter.Microsoft.Extensions.Logging.csproj +++ b/src/Uno.UI.Adapter.Microsoft.Extensions.Logging/Uno.UI.Adapter.Microsoft.Extensions.Logging.csproj @@ -1,9 +1,13 @@  - + xamarinmac20;xamarinios10;MonoAndroid12.0;net461;netstandard2.0 MonoAndroid11.0;MonoAndroid12.0;xamarinios10;net461;netstandard2.0;xamarinmac20 + + netstandard2.0;net7.0 + + $(UnoTargetFrameworkOverride) diff --git a/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs b/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs index 2521dc7eb058..17e227f92f26 100644 --- a/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs +++ b/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs @@ -18,6 +18,7 @@ namespace SamplesApp.UnitTests.TSBindings public class TSBindingsTests { +#if NET7_0_OR_GREATER [TestMethod] public void When_TestPerf() { @@ -26,6 +27,7 @@ public void When_TestPerf() { string r = TestImport.When_SingleStringNet7(i.ToString()); } + Console.WriteLine($"net7 interop: {sw1.Elapsed}"); var sw2 = Stopwatch.StartNew(); @@ -39,9 +41,10 @@ public void When_TestPerf() var ret = (GenericReturn)TSInteropMarshaller.InvokeJS("TSBindingsUnitTests:When_SingleString", param, typeof(GenericReturn)); } - Console.WriteLine($"uno ts interop: {sw2.Elapsed}"); + Console.WriteLine($"uno ts interop: {sw2.Elapsed}"); } +#endif [TestMethod] public void When_IntPtr() @@ -193,11 +196,13 @@ public void When_ArrayOfNullStrings() } } +#if NET7_0_OR_GREATER partial class TestImport { [JSImport("globalThis.TSBindingsTests.When_SingleStringNet7")] internal static partial string When_SingleStringNet7(string value); } +#endif [TSInteropMessage] [StructLayout(LayoutKind.Sequential, Pack = 4)]