-
Notifications
You must be signed in to change notification settings - Fork 310
Add devcontainer to this repo #740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes dotnet#739 Add devcontainer configuration to the repository to enable running samples via Codespaces. * **Add `.devcontainer/devcontainer.json`**: - Set the `name` to ".NET Aspire Samples". - Use the `image` "mcr.microsoft.com/devcontainers/dotnet:dev-9.0-bookworm". - Add necessary `features` for the devcontainer. - Add `customizations` for VS Code extensions and settings. - Set `onCreateCommand` to "dotnet restore". - Set `postStartCommand` to "dotnet dev-certs https --trust". - Configure `remoteEnv` for the PATH. * **Update `README.md`**: - Add a section about using devcontainer and Codespaces to run the samples. - Provide instructions on how to set up and use the devcontainer. - Include steps for setting up Devcontainer and using GitHub Codespaces. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dotnet/aspire-samples/issues/739?shareId=XXXX-XXXX-XXXX-XXXX).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation for using the repository's devcontainer configuration and GitHub Codespaces, enabling easier setup and execution of .NET sample projects.
- Added a new "Using Devcontainer and Codespaces" section with step-by-step setup instructions.
- Outlined the process for setting up the devcontainer in VS Code and creating a Codespace.
|
Interested in thoughts from @mitchdenny who set up in dotnet/aspire dotnet/aspire#6491 |
|
Also the |
* **.devcontainer/devcontainer.json**: Add a new devcontainer configuration file with the specified settings, features, and customizations for VS Code. * **README.md**: Add a section about using devcontainer and Codespaces, including instructions on how to set up and use the devcontainer.
* **Configuration** - Set `name` to ".NET Aspire Samples" - Set `image` to "mcr.microsoft.com/devcontainers/dotnet:dev-9.0-bookworm" - Add necessary `features` for the devcontainer - Add `customizations` for VS Code extensions and settings - Set `dotnet.defaultSolution` to "samples/AspireShop/AspireShop.sln" - Remove `remoteEnv` PATH setting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a devcontainer configuration and updates the README to provide instructions on using the devcontainer with GitHub Codespaces for running the samples.
- Adds a new section in the README with step-by-step instructions for setting up and using the devcontainer.
- Provides clear guidance for both local VS Code development and Codespaces usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks right
Fixes #739
Add devcontainer configuration to the repository to enable running samples via Codespaces.
Add
.devcontainer/devcontainer.json:nameto ".NET Aspire Samples".image"mcr.microsoft.com/devcontainers/dotnet:dev-9.0-bookworm".featuresfor the devcontainer.customizationsfor VS Code extensions and settings.onCreateCommandto "dotnet restore".postStartCommandto "dotnet dev-certs https --trust".remoteEnvfor the PATH.Update
README.md:For more details, open the Copilot Workspace session.