Skip to content

Commit

Permalink
[wasm] Template nits 2 (#77205)
Browse files Browse the repository at this point in the history
* Drop duplicated description from json definition.
* Update readme in both templates.
  • Loading branch information
maraf authored Oct 20, 2022
1 parent 57f64d9 commit 95d36a9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 6 additions & 5 deletions src/mono/wasm/templates/templates/browser/README.md
Original file line number Diff line number Diff line change
@@ -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
```
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/mono/wasm/templates/templates/console/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 95d36a9

Please sign in to comment.