-
Notifications
You must be signed in to change notification settings - Fork 545
Add copilot-setup-steps.yml for .NET 10.0.100 RC1 SDK preinstallation #872
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
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
@@ -0,0 +1,19 @@ | |||
name: Setup .NET SDK 10.0.100 RC1 | |||
steps: | |||
- name: Download and install .NET 10.0.100 RC1 SDK |
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.
Should probably use something like this https://github.com/dotnet/aspire/blob/911e1f62c0caa3fae683218f24ef0cd0be3e1efb/.github/workflows/copilot-setup-steps.yml#L35
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.
or maybe something like this:
- uses: actions/setup-dotnet@v5
with:
global-json-file: csharp/global.json
https://github.com/actions/setup-dotnet?tab=readme-ov-file#using-the-global-json-file-input
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.
@copilot , can you update using the global-json-file approach?
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.
@copilot, please see the previous comment about global-json-file and update to use that approach.
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.
Should we create an issue to undo these instructions once .NET 10 is GA?
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.
or maybe something like this:
- uses: actions/setup-dotnet@v5
with:
global-json-file: csharp/global.json
actions/setup-dotnet#using-the-global-json-file-input
That's cool. We should also update all the workflows I updated in #871 to use global-json-file
too. I wonder if we could use that in addition to dotnet-version
for 9.0.x.
If we do this, I don't think we'd need an issue specifically for updating instructions since all we'd need to update is the global.json.
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.
@copilot, can you update using the global-json-file approach?
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.
copilot's gotten stuck. Trying a new PR.
#877
Summary
This PR adds a
copilot-setup-steps.yml
file to preinstall the .NET 10.0.100 RC1 SDK in the GitHub Copilot Coding Agent environment, following the official documentation for customizing the agent environment.Changes
Added
.github/copilot-setup-steps.yml
that:Downloads and installs the .NET SDK using the official Microsoft installation script
10.0.100-rc.1.25451.107
(as specified inglobal.json
)$HOME/.dotnet
to avoid permission issues$GITHUB_PATH
to make it available for all subsequent Copilot agent stepsVerifies the installation by running
dotnet --version
to confirm the SDK is properly installed and accessibleWhy This Matters
The repository requires .NET 10.0.100 RC1 to build and test successfully. Without this preinstallation, the GitHub Copilot Coding Agent would encounter build failures when working on this repository, as the agent environment doesn't include this preview SDK by default.
With this setup file in place, the Copilot Coding Agent will automatically have the correct .NET SDK version available, enabling it to:
Testing
global.json
requirementOriginal prompt
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.