Skip to content
Merged
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
55 changes: 55 additions & 0 deletions copilot-setup-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# GitHub Copilot Setup Steps for NLWebNet
# This file defines the setup steps needed to work with the NLWebNet repository

name: Setup .NET 9 Environment for NLWebNet
description: Install .NET 9 SDK and restore dependencies for the NLWebNet library and demo application

steps:
- name: Install .NET 9 SDK
description: Download and install the .NET 9 SDK for Ubuntu using the official Microsoft install script
run: |
# Check if .NET 9 is already installed
if command -v dotnet &> /dev/null && dotnet --list-sdks | grep -q "9\."; then
echo "✅ .NET 9 SDK is already installed"
dotnet --version
exit 0
fi

# Download and install .NET 9 SDK using official Microsoft install script
echo "📦 Installing .NET 9 SDK..."
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 9.0 --install-dir ~/.dotnet

# Add .NET to PATH if not already present
if [[ ":$PATH:" != *":$HOME/.dotnet:"* ]]; then
echo 'export PATH="$HOME/.dotnet:$PATH"' >> ~/.bashrc
export PATH="$HOME/.dotnet:$PATH"
fi

# Verify installation
echo "🔍 Verifying .NET installation..."
dotnet --version
dotnet --info

- name: Restore NuGet packages
description: Restore all NuGet package dependencies for the solution
run: |
dotnet restore

- name: Build solution
description: Build the entire solution to verify setup is working
run: |
dotnet build --configuration Debug --no-restore

- name: Verify setup
description: Run a quick verification that everything is set up correctly
run: |
echo "✅ .NET 9 SDK installed successfully"
echo "✅ NuGet packages restored"
echo "✅ Solution builds successfully"
echo ""
echo "🚀 You can now work with the NLWebNet repository!"
echo ""
echo "Quick start commands:"
echo " - Build: dotnet build"
echo " - Test: dotnet test"
echo " - Run demo: dotnet run --project demo"