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/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/.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", diff --git a/src/mono/wasm/templates/templates/console/README.md b/src/mono/wasm/templates/templates/console/README.md index 84fd14b27897e2..3adce359ae1638 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 ``` -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 directly start node from the AppBundle directory: ``` node bin/$(Configuration)/net7.0/browser-wasm/AppBundle/main.mjs