diff --git a/copilot-setup-steps.yml b/copilot-setup-steps.yml new file mode 100644 index 0000000..3858409 --- /dev/null +++ b/copilot-setup-steps.yml @@ -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" \ No newline at end of file