diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index dbc7b5a41969..5904f1481f00 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -50,8 +50,8 @@ - - + + diff --git a/src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj b/src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj index 8413cbf85253..5d57ae3547bc 100644 --- a/src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj +++ b/src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj @@ -4,7 +4,7 @@ net6.0 - + net7.0 diff --git a/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs b/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs index 95e135f207b9..a70c014e5a14 100644 --- a/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs +++ b/src/Uno.UI.Wasm.Tests/Tests/TSBindingsTests.cs @@ -202,7 +202,7 @@ public void When_ArrayOfNullStrings() #if NET7_0_OR_GREATER partial class TestImport { - [JSImport("globalThis.TSBindingsTests.When_SingleStringNet7")] + [JSImport("globalThis.When_SingleStringNet7")] internal static partial string When_SingleStringNet7(string value); } #endif diff --git a/src/Uno.UI.Wasm.Tests/Uno.UI.Wasm.Tests.csproj b/src/Uno.UI.Wasm.Tests/Uno.UI.Wasm.Tests.csproj index 396fb42fee26..fbb1bdd0b78e 100644 --- a/src/Uno.UI.Wasm.Tests/Uno.UI.Wasm.Tests.csproj +++ b/src/Uno.UI.Wasm.Tests/Uno.UI.Wasm.Tests.csproj @@ -58,6 +58,7 @@ + $(MSBuildThisFileDirectory)..\SourceGenerators\Uno.UI.Tasks\bin\$(Configuration)_Shadow CoreCompile;_UnoSetupTSCompilation; $(CompileTypeScriptDependsOn) @@ -72,13 +73,19 @@ - + <_generatedTSFiles Include="$(IntermediateOutputPath)/javascript/*.js" /> - + + + <_UnoEmbeddedResourcesInjectionAfterTargets Include="CompileTypeScriptWithTSConfig" /> + + diff --git a/src/Uno.UI.Wasm.Tests/ts/TSBindingsTests.ts b/src/Uno.UI.Wasm.Tests/ts/TSBindingsTests.ts index 8cdc673b9ba3..2c1212c4731a 100644 --- a/src/Uno.UI.Wasm.Tests/ts/TSBindingsTests.ts +++ b/src/Uno.UI.Wasm.Tests/ts/TSBindingsTests.ts @@ -2,6 +2,7 @@ MonoSupport.jsCallDispatcher.registerScope("TSBindingsUnitTests", new TSBindingsTests()); + (globalThis).When_SingleStringNet7 = TSBindingsTests.When_SingleStringNet7 }); class TSBindingsTests {