14 Commits
Author SHA1 Message Date
Alexander Köplinger 18f30897b7 Fix wasm Codespaces prebuild (#96326)
The makefile target was moved in https://github.com/dotnet/runtime/pull/95940
2023-12-27 19:15:50 +01:00
Kevin Jones 72fae0073b Create a Codespace for Android development (#96257) 2023-12-26 11:06:06 +01:00
Ankit Jain a36a860f74 [wasm] Extract src/mono/browser from src/mono/wasm (#95940)
* [wasm] Extract src/mono/browser from src/mono/wasm, and update to track changes

* [wasm] Makefile - update to remove some unrelated targets

* [wasm] Rename wasm.proj to browser.proj - feedback from @ maraf

* Add the renamed browser.proj

* address review feedback from @ maraf

* review feedback from @ pavelsavara

* address review feedback from @ maraf
2023-12-19 10:03:41 -05:00
Alexander Köplinger 2aea2440a5 Improve DevContainer configuration for Codespaces (#91465)
Adds a default configuration that comes with all the dependencies preinstalled, but not prebuilt. This reduces confusion if you don't use the "New with options..." dropdown when creating the Codespace since you'd just get a standard Ubuntu container then.

Also install a specific version of dotnet-serve.
2023-09-01 17:18:29 +02:00
4233da3078 [main] Update dependencies from dotnet/arcade (#84698)
* Update dependencies from https://github.com/dotnet/arcade build 20230411.8

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
 From Version 8.0.0-beta.23210.3 -> To Version 8.0.0-beta.23211.8

* Mark NativeBuild_WithDeployOnBuild_UsedByVS as an active issue

* Revert codespaces workaround from #83331

* Bring in missing arcade changes

* Update dependencies from .NET Eng - Latest manually

* Update Version.Details.xml

* Update Versions.props

* Update dependencies from https://github.com/dotnet/arcade build 20230413.1

Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions
 From Version 8.0.0-beta.23210.3 -> To Version 8.0.0-beta.23213.1

* Fix ILCompiler build with newer SDK

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Co-authored-by: Sven Boemer <sbomer@gmail.com>
2023-04-14 19:04:38 -05:00
Alexander Köplinger f2a1411593 [Codespaces] Fix prebuild by using newer dotnet sdk (#83331)
fix to resolve a build error during Codespaces prebuild: https://github.com/dotnet/msbuild/issues/8531
2023-03-15 22:00:25 +01:00
Viktor Hofer 2ca7cf7140 Lowercase TargetOS (#80164)
Follow-up on #32451
Follow-up on #80074

In #43651, the "Windows" OS name was lowercased to achieve target frameworks with RIDs in them. At that time, the original plan was to lowercase all TargetOS values but that had to be cut because of resources. This PR finishes that and updates build systems, YML, markdowns and managed components.

To not break existing developer workflows, the passed-in -os value is automatically lower-cased in the script entry points and validated in the msbuild entry point.
2023-01-11 17:58:32 +01:00
Eric Erhardt 55060ebf68 Split Codespaces configuration based on development scenarios (#74683)
* Split libraries and wasm devcontainers

Codespaces allows for monorepo support now. So we can have different pre-builds for different dev environments.

Creating a "libraries" pre-build and a "wasm" pre-build devcontainer.

* Move devcontainer files into separate folders

* Path up a directory to the Dockerfile

* Split the Dockerfile so it can be customized per devcontainer

* Update Codespaces docs

* Respond to PR feedback

* Use the new open devcontainers path.

* Use the GH CLI feature instead of installing it ourselves

* Set hostRequirements for Codespaces

Developing in dotnet/runtime with a 2-core / 4GB ram machine doesn't work very well. Add a minimum of 4-core machine to the devcontainer spec.

Fix #75680
2022-09-20 11:24:04 -05:00
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 <52458914+fanyang-mono@users.noreply.github.com>
2022-01-26 21:00:00 -05:00
Fan Yang ae755ab3c7 Install v8 and Prebuild wasm (#64100) 2022-01-24 15:10:22 -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 8f8e8f0493 Update Codespaces configuration (#60900)
- mark onCreateCommand.sh as executable
- add more regions so users outside of West US can take advantage of prebuilt codespaces
- use v1-stable version, as recommended by docs
- use faster machines for dev productivity
2021-10-27 14:45:08 -05: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