Skip to content

Commit

Permalink
Update how-to-use-web-assembly.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 authored Dec 10, 2024
1 parent eedb000 commit 880d33c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/platforms/how-to-use-web-assembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ dotnet publish
```

After project was published, .NET SDK creates an app bundle directory with `index.html` file and compiled application files.
With latest .NET 9 SDK, this directory is located at `bin/Release/net9.0-browser/publish/wwwroot`.
With latest .NET 9 SDK, this directory is located at `bin/Release/net9.0-browser/publish/wwwroot`. If your project targets "net8.0-browser", use `net8.0-browser` directory.
Now you can serve your app from this directory using your favorite web server (such as Azure Static Web Apps).

:::note
Expand All @@ -76,10 +76,10 @@ You can serve your wasm app from this directly using the [dotnet-serve](https://
```bash
dotnet tool install --global dotnet-serve

dotnet serve -d:bin/Release/net8.0-browser/browser-wasm/publish
dotnet serve -d:bin/Release/net9.0-browser/publish/wwwroot

# Output:
# Starting server, serving bin/Release/net8.0-browser/browser-wasm/publish
# Starting server, serving bin/Release/net9.0-browser/publish/wwwroot
# Listening on any IP:
# http://localhost:49875
```
Expand Down

0 comments on commit 880d33c

Please sign in to comment.