Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Setup .NET SDK 10.0.100 RC1
steps:
- name: Download and install .NET 10.0.100 RC1 SDK
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

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

Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Member

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?

Copy link
Contributor

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:

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.

Copy link
Contributor

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?

Copy link
Contributor

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

run: |
# Download the .NET install script
curl -sSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh
chmod +x /tmp/dotnet-install.sh

# Install .NET SDK 10.0.100-rc.1.25451.107
/tmp/dotnet-install.sh --version 10.0.100-rc.1.25451.107 --install-dir $HOME/.dotnet

# Add to PATH
echo "$HOME/.dotnet" >> $GITHUB_PATH

# Cleanup
rm -f /tmp/dotnet-install.sh
- name: Verify .NET SDK installation
run: |
$HOME/.dotnet/dotnet --version