diff --git a/src/Uno.Templates/content/unoapp/.template.config/dotnetcli.host.json b/src/Uno.Templates/content/unoapp/.template.config/dotnetcli.host.json
index 972da76b..108227b7 100644
--- a/src/Uno.Templates/content/unoapp/.template.config/dotnetcli.host.json
+++ b/src/Uno.Templates/content/unoapp/.template.config/dotnetcli.host.json
@@ -96,7 +96,7 @@
"skipRestore": {
"longName": "skip-restore",
"shortName": "skip"
- },
+ },
"themeService": {
"longName": "theme-service",
"shortName": "theme-service"
@@ -113,6 +113,10 @@
"longName": "default-branch-name",
"shortName": "branch"
},
+ "wasmMultiThreading": {
+ "longName": "wasm-multi-threading",
+ "shortName": "wasm-multi-threading"
+ },
"unoWinUIVersion": {
"isHidden": true
},
diff --git a/src/Uno.Templates/content/unoapp/.template.config/template.json b/src/Uno.Templates/content/unoapp/.template.config/template.json
index 16a9c86b..0f99c986 100644
--- a/src/Uno.Templates/content/unoapp/.template.config/template.json
+++ b/src/Uno.Templates/content/unoapp/.template.config/template.json
@@ -709,6 +709,13 @@
"datatype": "bool",
"defaultValue": "false"
},
+ "wasmMultiThreading": {
+ "displayName": "WASM Multi-Threading",
+ "description": "Configures application to use multi-threading in WebAssembly",
+ "type": "parameter",
+ "datatype": "bool",
+ "defaultValue": "false"
+ },
"skipRestore": {
"type": "parameter",
"datatype": "bool",
@@ -1113,6 +1120,12 @@
"datatype": "bool",
"value": "useMvux || useMvvm"
},
+ "useWasmMultiThreading": {
+ "type": "computed",
+ "datatype": "bool",
+ // NOTE: This doesn't work well in net7.0
+ "value": "(tfm != 'net7.0' && wasmMultiThreading)"
+ },
"useGtk": {
"type": "computed",
"datatype": "bool",
diff --git a/src/Uno.Templates/content/unoapp/MyExtensionsApp.1.Wasm/MyExtensionsApp.1.Wasm.csproj b/src/Uno.Templates/content/unoapp/MyExtensionsApp.1.Wasm/MyExtensionsApp.1.Wasm.csproj
index 10707241..8e053851 100644
--- a/src/Uno.Templates/content/unoapp/MyExtensionsApp.1.Wasm/MyExtensionsApp.1.Wasm.csproj
+++ b/src/Uno.Templates/content/unoapp/MyExtensionsApp.1.Wasm/MyExtensionsApp.1.Wasm.csproj
@@ -14,6 +14,17 @@
https://aka.platform.uno/wasm-deeplink
-->
/
+
+
+
+ true
+ 8
+
true