Commit Graph
4 Commits
Author SHA1 Message Date
Aleksey Kliger (λgeek)andFan Yang 5a9bcde1d5 [Codespaces] Make it possible to run wasm samples in the browser (#64277)
With these changes, running the following in the Codespace will open the local browser to a page served from the codespace hosting the WASM sample:

```console
cd src/mono/sample/wasm/browser
make
make run-browser
```


* Set EMSDK_PATH in .devcontainer.json

   We provision Emscripten as part of the devcontainer prebuild.

   Set EMSDK_PATH to allow rebuilding the wasm runtime to work without any additional ceremony

* Install dotnet-serve into .dotnet-tools-global

* [wasm] Don't try to open browser if running in Codespaces

* .devcontainer: add global tools dir to PATH

* .devcontainer: forward port 8000

   This enables running the mono wasm samples in the local browser:

* [wasm] samples: also check for dotnet-serve on the path

   On Codespaces we install dotnet-serve on the PATH but not where `dotnet tool list` can see it

* remove onAutoForward: notify - it's the default

* Adjust the path of v8 depends if running in a dev container

* Check if we're running in any Docker container, not just Codespaces

Co-authored-by: Fan Yang <[email protected]>
2022-01-26 21:00:00 -05:00
Santiago Fernandez Madero c66fa996b5 Add .runsettings file to be able to run and debug tests on vscode in codespace with prebuilt (#61684) 2021-11-16 14:34:52 -08:00
Eric Erhardt 3dfdcb918b Add instructions for using Codespaces (#60996)
* Add instructions for using Codespaces

* Automate resetting the HEAD to the same commit ID used to build the pre-built container

* - Add notes about testing changes.

- Add 4-core machines

* Revert 4-core change since prebuild doesn't support multiple sku_names.
2021-11-08 20:18:05 -06:00
Eric Erhardt 8e4c996ae3 Add initial codespaces support for dotnet/runtime (#59723)
* Add initial codespaces support for dotnet/runtime

* Enable codespaces-prebuild
2021-09-29 11:41:36 -05:00