diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..fb8d41b7 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,35 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet +{ + "name": "C# (.NET)", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/dotnet:8.0", + "features": { + "ghcr.io/devcontainers/features/dotnet:1": {} + }, + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [5000, 5001], + // "portsAttributes": { + // "5001": { + // "protocol": "https" + // } + // } + + // Use 'postCreateCommand' to run commands after the container is created. + //"postCreateCommand": "", + + //This will build the Solution initially so that all dependencies are restored. + //If it fails analyssis needs to be done + //This is optional, can be disabled if it makes problems + "postStartCommand": "dotnet build /p:EnableWindowsTargeting=true" + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" + } \ No newline at end of file diff --git a/README.md b/README.md index 153de5ab..c20d880f 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,10 @@ On linux, the operation is similar: cd $wesay/build ./TestBuild.sh +On Github-Codespace you can use the following to compile: + + dotnet build /p:EnableWindowsTargeting=true + These scripts perform a Debug build, placing the result in `$wesay/output/Debug`. #### TODO (Hasso) 2022.04: update scripts and instructions so this works: > If you prefer a Release build, then add `Release`