Skip to content

Set up GitHub Codespaces dev environment for .NET 10 Blazor + PostgreSQL#186

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/create-github-codespaces-dev-env
Draft

Set up GitHub Codespaces dev environment for .NET 10 Blazor + PostgreSQL#186
Copilot wants to merge 2 commits intomainfrom
copilot/create-github-codespaces-dev-env

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 14, 2026

The .devcontainer/devcontainer.json was not valid JSON and contained broken variable interpolation, making Codespaces non-functional. No .vscode/launch.json or tasks.json existed, so F5 debugging was not possible.

Changes

.devcontainer/devcontainer.json

  • Rewrote as valid JSON (was missing all quotes/colons)
  • workspaceFolder/workspaces/MESS
  • postCreateCommandbash .devcontainer/init-db.sh (correct relative path from workspace root)
  • dotnet.defaultSolutionMESS/MESS.slnx

.devcontainer/init-db.sh

  • Added cd "${WORKSPACE_DIR}/MESS" at startup so existing relative paths (MESS.slnx, MESS.Data/, MESS.Blazor/) resolve correctly when invoked from /workspaces/MESS

.vscode/launch.json (new)

  • coreclr launch config targeting MESS.Blazor/bin/Debug/net10.0/MESS.Blazor.dll
  • cwd set to ${workspaceFolder}/MESS
  • serverReadyAction auto-opens browser on forwarded port when app starts
  • preLaunchTask: "build" chains into tasks

.vscode/tasks.json (new)

  • restore: dotnet restore ${workspaceFolder}/MESS/MESS.slnx
  • build: dotnet build ... --no-restore, depends on restore, set as default build task

Copilot AI linked an issue Apr 14, 2026 that may be closed by this pull request
…nch, and tasks config

Agent-Logs-Url: https://github.com/VidetteMakes/MESS/sessions/8cc9d9a6-cc53-494e-a0b9-1f82d4c09b5e

Co-authored-by: adamj537 <11276599+adamj537@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up GitHub Codespaces development environment Set up GitHub Codespaces dev environment for .NET 10 Blazor + PostgreSQL Apr 14, 2026
Copilot AI requested a review from adamj537 April 14, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create GitHub Codespaces Dev Environment

2 participants