From c9404ef9d1f0d74ed2155bfb56111c9fd1a50426 Mon Sep 17 00:00:00 2001 From: ethnos-men Date: Sun, 27 Apr 2025 04:21:26 +0000 Subject: [PATCH 1/3] Added initial Configuration for github Codespace --- .devcontainer/devcontainer.json | 31 +++++++++++++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..cfeed930 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,31 @@ +// 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": "", + //"postStartCommand": "" + + // 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` From 38a81486523db8b93bea8fb1f244e3e30cb209ed Mon Sep 17 00:00:00 2001 From: ethnos-men Date: Sun, 27 Apr 2025 04:27:14 +0000 Subject: [PATCH 2/3] Try to directly compile after starting the container dev environment --- .devcontainer/devcontainer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cfeed930..951b8141 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,8 +20,8 @@ // } // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "", - //"postStartCommand": "" + //"postCreateCommand": "", + "postStartCommand": "dotnet build /p:EnableWindowsTargeting=true" // Configure tool-specific properties. // "customizations": {}, From f589e75ba5c8b6c0ab6ee61202f63ff4c520843c Mon Sep 17 00:00:00 2001 From: ethnos-men Date: Sun, 27 Apr 2025 04:36:17 +0000 Subject: [PATCH 3/3] Added comment for devcontainer.json --- .devcontainer/devcontainer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 951b8141..fb8d41b7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,6 +21,10 @@ // 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.