Skip to content

Sample projects in this repo should "just work" in GitHub codespaces #776

@mikekistler

Description

@mikekistler

Some sample projects in this repo, such as the EverythingServer, won't currently build/run in a GitHub codespace without "fiddling".

Simply opening the repo in a codespace and attempting to run the EverythingServer gives this error:

Image

I think that the default container image GitHub uses for codespaces includes .NET 8 (LTS) but not .NET 9 (STS), and that's what you get in this repo since there is no devcontainer.json to tell it otherwise.

I tried to simply change "global.json" to use the installed SDK (8.0.412) but that still fails because the EverythingServer.csproj specifies a TFM of .NET9.

One fix might be to add a devcontainer.json that includes both .NET 8 and .NET 9.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions