Generative-AI-for-beginners-dotnet

Five lessons, learn how to really apply AI to your .NET Applications

What is Generative-AI-for-beginners-dotnet?

Five lessons, learn how to really apply AI to your .NET Applications

Overview of Generative-AI-for-beginners-dotnet

What it is

Generative AI for Beginners .NET is a hands-on course by Microsoft that teaches .NET developers how to build Generative AI applications. It consists of five practical lessons covering introduction to generative AI, techniques, patterns and applications, AI agents with Microsoft Agent Framework, and responsible AI. The course emphasizes real-world coding with fully functional .NET code samples, short videos where available, and step-by-step guidance. It supports multiple AI providers: Azure OpenAI Services, Microsoft Foundry, or local models via Ollama. The repository is regularly updated with new samples, such as decision-powered Hosted Agents, GitHub Copilot SDK with BYOK, and local AI with Foundry Local.

Key features

  • Short videos for core concepts alongside written walkthroughs.
  • Fully functional .NET code samples that can be run and explored.
  • Integration with GitHub Codespaces for seamless setup and fast time-to-code.
  • Support for Azure OpenAI Services, Microsoft Foundry, or Ollama for local model hosting.
  • Each lesson includes videos (where available), complete code samples, step-by-step guidance, and deep dive references.
  • Multi-language support: README translated into Chinese (Simplified and Traditional), French, Japanese, Korean, Portuguese, Spanish, and German.
  • Regularly updated with new samples and features (e.g., Microsoft Agent Framework v1.0 GA, Foundry Local samples).

Use cases

  • Building Generative AI applications in .NET, from basic text generation to full solutions using Azure OpenAI Services or local models with Ollama.
  • Implementing semantic search that understands meaning and retrieval augmented generation (RAG) for document processing.
  • Creating AI agents that use tools, take actions, and orchestrate multi-agent workflows using Microsoft Agent Framework.
  • Applying responsible AI practices: identifying and mitigating bias, implementing content safety and guardrails, and building transparency into systems.

Getting started

Prerequisites: .NET 11 SDK (11.0.100 or later), basic understanding of .NET, a local clone of this repository, and one AI provider (Ollama on your machine, or Azure OpenAI / Microsoft Foundry). Ollama learners do not need an Azure account, Azure CLI, API keys, or Codespaces. For detailed setup instructions, see the repository README.

License and pricing

MIT license. Open source and free.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/microsoftgenerative-ai-for-beginners-dotnet.svg)](https://yunodb.com/tools/microsoftgenerative-ai-for-beginners-dotnet?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/microsoftgenerative-ai-for-beginners-dotnet?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/microsoftgenerative-ai-for-beginners-dotnet.svg" alt="Featured on YunoDB" height="20"></a>