1+ # GitHub Copilot Setup Steps for NLWebNet
2+ # This file defines the setup steps needed to work with the NLWebNet repository
3+
4+ name : Setup .NET 9 Environment for NLWebNet
5+ description : Install .NET 9 SDK and restore dependencies for the NLWebNet library and demo application
6+
7+ steps :
8+ - name : Install .NET 9 SDK
9+ description : Download and install the .NET 9 SDK for Ubuntu using the official Microsoft install script
10+ run : |
11+ # Check if .NET 9 is already installed
12+ if command -v dotnet &> /dev/null && dotnet --list-sdks | grep -q "9\."; then
13+ echo "✅ .NET 9 SDK is already installed"
14+ dotnet --version
15+ exit 0
16+ fi
17+
18+ # Download and install .NET 9 SDK using official Microsoft install script
19+ echo "📦 Installing .NET 9 SDK..."
20+ curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 9.0 --install-dir ~/.dotnet
21+
22+ # Add .NET to PATH if not already present
23+ if [[ ":$PATH:" != *":$HOME/.dotnet:"* ]]; then
24+ echo 'export PATH="$HOME/.dotnet:$PATH"' >> ~/.bashrc
25+ export PATH="$HOME/.dotnet:$PATH"
26+ fi
27+
28+ # Verify installation
29+ echo "🔍 Verifying .NET installation..."
30+ dotnet --version
31+ dotnet --info
32+
33+ - name : Restore NuGet packages
34+ description : Restore all NuGet package dependencies for the solution
35+ run : |
36+ dotnet restore
37+
38+ - name : Build solution
39+ description : Build the entire solution to verify setup is working
40+ run : |
41+ dotnet build --configuration Debug --no-restore
42+
43+ - name : Verify setup
44+ description : Run a quick verification that everything is set up correctly
45+ run : |
46+ echo "✅ .NET 9 SDK installed successfully"
47+ echo "✅ NuGet packages restored"
48+ echo "✅ Solution builds successfully"
49+ echo ""
50+ echo "🚀 You can now work with the NLWebNet repository!"
51+ echo ""
52+ echo "Quick start commands:"
53+ echo " - Build: dotnet build"
54+ echo " - Test: dotnet test"
55+ echo " - Run demo: dotnet run --project demo"
0 commit comments