A step-by-step guide to building a .NET console application using the GitHub Copilot SDK. Covers prerequisites (dotnet 8+, Copilot CLI, subscription), creating a project, sending a first message, adding streaming responses via event-driven callbacks, implementing multi-turn conversations with persistent context, registering custom tools using AIFunctionFactory, handling permissions for tool calls, and configuring BYOK (bring your own key) with OpenAI, Azure AI Foundry, or Anthropic as alternatives to a Copilot subscription.

7m read timeFrom bartwullems.blogspot.com
Post cover image
Table of contents
What we will buildPrerequisitesStep 1: Create the projectStep 2: Your first messageStep 3: Add streamingStep 4: Multi-turn conversationStep 5: Add a custom toolStep 6: Handling permissionsUsing BYOK instead of a Copilot subscriptionPutting it togetherWhat's next

Sort: