https://github.com/celsojr/dotnetwasm
Dotnet WASM minimal template
https://github.com/celsojr/dotnetwasm
dotnet wasm webassembly
Last synced: 3 months ago
JSON representation
Dotnet WASM minimal template
- Host: GitHub
- URL: https://github.com/celsojr/dotnetwasm
- Owner: celsojr
- Created: 2023-10-01T15:38:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T19:20:01.000Z (over 1 year ago)
- Last Synced: 2025-02-04T20:34:35.697Z (11 months ago)
- Topics: dotnet, wasm, webassembly
- Language: C#
- Homepage: http://localhost:5053/index.html
- Size: 538 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## .NET WebAssembly Browser app
[](https://github.com/celsojr/DotnetWasm/actions/workflows/playwright.yml)
## Build
You can build the app from Visual Studio or from the command-line:
```
dotnet workload restore --skip-sign-check
dotnet build -c Debug/Release
```
After building the app, the result is in the `bin/$(Configuration)/net8.0/browser-wasm/AppBundle` directory.
## Run
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:
```
dotnet tool install dotnet-serve --global
dotnet serve -d:bin/$(Configuration)/net8.0/browser-wasm/AppBundle
```
## How to test with Playwright
In first console
```
dotnet run --project ./src/DotnetWasm.csproj
```
In second console
```
dotnet build test/PlaywrightTests.csproj
pwsh test/bin/$(Configuration)/net7.0/playwright.ps1 install
dotnet test test/PlaywrightTests.csproj
```