From b715864bff6816361eb914f5bb4cf8cb3bd173f6 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 346ea52ad7f7f3..ff7164a96a3965 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": 7000, "identity": "WebAssembly.Browser.7.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 e59261e64e7713..c5e89c0b80dc9d 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": 7000, "identity": "WebAssembly.Console.7.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 1ea2d4c721b9ac83da5ffb85a766a8add22983a6 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 376ffc3db4f919aaf3fe2aa6473537dca6f70030 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: