From 529c383a898aae9a3abaafe197e69f1bbb2f7362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Wed, 19 Oct 2022 09:54:04 +0200 Subject: [PATCH 1/3] Drop duplicated description. --- .../templates/templates/browser/.template.config/template.json | 1 - .../templates/templates/console/.template.config/template.json | 1 - 2 files changed, 2 deletions(-) diff --git a/src/mono/wasm/templates/templates/browser/.template.config/template.json b/src/mono/wasm/templates/templates/browser/.template.config/template.json index 7fc4f1555199e9..51fa5a92b49e2c 100644 --- a/src/mono/wasm/templates/templates/browser/.template.config/template.json +++ b/src/mono/wasm/templates/templates/browser/.template.config/template.json @@ -6,7 +6,6 @@ "groupIdentity": "WebAssembly.Browser", "precedence": 8000, "identity": "WebAssembly.Browser.8.0", - "description": "WebAssembly Browser App", "name": "WebAssembly Browser App", "description": "A project template for creating a .NET app that runs on WebAssembly in a browser", "shortName": "wasmbrowser", diff --git a/src/mono/wasm/templates/templates/console/.template.config/template.json b/src/mono/wasm/templates/templates/console/.template.config/template.json index 0ea523824ae997..4124129fafa67e 100644 --- a/src/mono/wasm/templates/templates/console/.template.config/template.json +++ b/src/mono/wasm/templates/templates/console/.template.config/template.json @@ -5,7 +5,6 @@ "groupIdentity": "WebAssembly.Console", "precedence": 8000, "identity": "WebAssembly.Console.8.0", - "description": "WebAssembly Console App", "name": "WebAssembly Console App", "description": "A project template for creating a .NET app that runs on WebAssembly on Node JS or V8", "shortName": "wasmconsole", From 07c61066520cff3177053709054add20409b51cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Wed, 19 Oct 2022 10:02:14 +0200 Subject: [PATCH 2/3] Update readme. --- .../wasm/templates/templates/console/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mono/wasm/templates/templates/console/README.md b/src/mono/wasm/templates/templates/console/README.md index 84fd14b27897e2..3370e7a276d8a9 100644 --- a/src/mono/wasm/templates/templates/console/README.md +++ b/src/mono/wasm/templates/templates/console/README.md @@ -1,24 +1,24 @@ -## Node application +## .NET WebAssembly Node app ## Build -You can build the application from Visual Studio or by dotnet cli +You can build the app from Visual Studio or from the command-line: ``` -dotnet build -c Debug/Release +dotnet build -c Debug/Release -r browser-wasm ``` -After building the application, the result is in the `bin/$(Configuration)/net7.0/browser-wasm/AppBundle` directory. +After building the app, the result is in the `bin/$(Configuration)/net7.0/browser-wasm/AppBundle` directory. ## Run -You can build the application from Visual Studio or by dotnet cli +You can build the app from Visual Studio or the command-line: ``` -dotnet run -c Debug/Release +dotnet run -c Debug/Release -r browser-wasm ``` -Or you can start any static file server from the AppBundle directory +Or directly start node from the AppBundle directory: ``` node bin/$(Configuration)/net7.0/browser-wasm/AppBundle/main.mjs From 63cd4691e1742deff40e31b46e5e51ed40da25ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Wed, 19 Oct 2022 11:05:01 +0200 Subject: [PATCH 3/3] Update readme. --- src/mono/wasm/templates/templates/browser/README.md | 11 ++++++----- src/mono/wasm/templates/templates/console/README.md | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/mono/wasm/templates/templates/browser/README.md b/src/mono/wasm/templates/templates/browser/README.md index 8e1339897bef46..7ddf4fd1bce9bd 100644 --- a/src/mono/wasm/templates/templates/browser/README.md +++ b/src/mono/wasm/templates/templates/browser/README.md @@ -1,25 +1,26 @@ -## Browser application +## .NET WebAssembly Browser app ## Build -You can build the application from Visual Studio or by dotnet cli +You can build the app from Visual Studio or from the command-line: ``` dotnet build -c Debug/Release ``` -After building the application, the result is in the `bin/$(Configuration)/net7.0/browser-wasm/AppBundle` directory. +After building the app, the result is in the `bin/$(Configuration)/net7.0/browser-wasm/AppBundle` directory. ## Run -You can build the application from Visual Studio or by dotnet cli +You can build the app from Visual Studio or the command-line: ``` dotnet run -c Debug/Release ``` -Or you can start any static file server from the AppBundle directory +Or you can start any static file server from the AppBundle directory: ``` +dotnet tool install dotnet-serve dotnet serve -d:bin/$(Configuration)/net7.0/browser-wasm/AppBundle ``` \ No newline at end of file diff --git a/src/mono/wasm/templates/templates/console/README.md b/src/mono/wasm/templates/templates/console/README.md index 3370e7a276d8a9..3adce359ae1638 100644 --- a/src/mono/wasm/templates/templates/console/README.md +++ b/src/mono/wasm/templates/templates/console/README.md @@ -5,7 +5,7 @@ You can build the app from Visual Studio or from the command-line: ``` -dotnet build -c Debug/Release -r browser-wasm +dotnet build -c Debug/Release ``` After building the app, the result is in the `bin/$(Configuration)/net7.0/browser-wasm/AppBundle` directory. @@ -15,7 +15,7 @@ After building the app, the result is in the `bin/$(Configuration)/net7.0/browse You can build the app from Visual Studio or the command-line: ``` -dotnet run -c Debug/Release -r browser-wasm +dotnet run -c Debug/Release ``` Or directly start node from the AppBundle directory: