View all files | ||||
Welcome to Generative AI for Beginners .NET, the hands-on course for .NET developers diving into the world of Generative AI!
This isn’t your typical “here’s some theory, good luck” course. This repository is all about real-world applications and live coding to empower .NET developers to take full advantage of Generative AI.
This is hands-on, practical, and designed to be fun!
Don't forget to star (🌟) this repo to find it easier later.
➡️Get your own copy by Forking this repo and find it next in your own repositories.
We're constantly improving this course with the latest AI tools, models, and practical samples:
🚀 Microsoft Agent Framework v1.0 GA (April 2026)
All 28 MAF samples upgraded from preview to stable v1.0 packages. This includes a breaking change: Microsoft.Agents.AI.AzureAI renamed to Microsoft.Agents.AI.Foundry.
2 new Hosted Agent scenarios — deploy containerized agents to Azure Foundry Agent Service:
Multi-agent workflows, streaming, persistence, and MCP all production-ready.
🚀 Microsoft Agent Framework Reaches Release Candidate!
Microsoft Agent Framework has reached Release Candidate (1.0.0-rc1) — a framework for building agents and multi-agent systems in .NET. Our samples are being migrated to the RC APIs. In the meantime, explore 25+ Agent Framework samples covering console apps, web chat, multi-agent workflows, and Foundry integration.
🤖 Claude Models with Agent Framework
Integrate Claude models from Microsoft Foundry with Microsoft Agent Framework! Three comprehensive samples demonstrate:
👉 Explore the Claude MAF Samples
Plus a foundational Claude integration sample:
View all previous updates in our What's New archive
Generative AI is transforming software development, and .NET is no exception. This course aims to simplify the journey by offering:
You'll learn how to implement Generative AI into .NET projects, from basic text generation to building full-fledged solutions using Azure OpenAI Services and local models with Ollama.
| 01 | Introduction to Generative AI |
|
| 02 | Generative AI Techniques |
|
| 03 | AI Patterns and Applications |
|
| 04 | AI Agents with Microsoft Agent Framework |
|
| 05 | Responsible AI |
|
| Chinese (Simplified) | zh | Chinese Translation | 2025-06-24 |
| Chinese (Traditional) | tw | Chinese Translation | 2025-06-24 |
| French | fr | French Translation | 2025-06-24 |
| Japanese | ja | Japanese Translation | 2025-06-24 |
| Korean | ko | Korean Translation | 2025-06-24 |
| Portuguese | pt | Portuguese Translation | 2025-06-24 |
| Spanish | es | Spanish Translation | 2025-06-24 |
| German | de | German Translation | 2025-06-24 |
Note: All translations were updated to match the original content on 2025-06-24. See PR #161 for details.
To get started, you'll need:
A GitHub account (free is fine!) to fork this entire repo to your own GitHub account.
GitHub Codespaces enabled for instant coding environments. You can enable GitHub Codespaces in your repository settings. Learn more about GitHub Codespaces here.
Create your copy by Forking this repo, or use the Fork button at the top of this page.
A basic understanding of .NET development. Learn more about .NET here.
Azure Developer CLI (azd) — Install here (required for automated Azure setup)
An Azure account — Create a free account here (a free account works!)
And that's it.
We've designed this course to be as low-friction as possible. We make use of the following to help you get started quickly:
Then when you're ready to expand we also have guides for:
For first-time Azure users, we provide an automated setup script that deploys all necessary resources:
This will:
For detailed instructions, see Azure Resource Setup Guide.
If you already have an Azure OpenAI account and the models deployed, configure secrets directly:
Then navigate to any sample and run:
Note: Azure OpenAI samples use az login for authentication. Run az login before running any Azure sample.
For detailed manual setup options, see Azure Resource Setup Guide.
When you're done with the course, clean up Azure resources to avoid ongoing charges:
This will:
Learn more in Azure Resource Setup Guide - Cleanup.
Contributions are welcome! Here's how you can help:
Report issues or bugs in the repo.
Improve existing code samples or add new ones, fork this repo and propose some changes!
Suggest additional lessons or enhancements.
Do you have suggestions or found spelling or code errors?, create a pull request
Check the CONTRIBUTING.MD file for details on how to get involved.
This project is licensed under the MIT License - see the LICENSE file for details.
We have a lot of other content to help your learning journey. Check out:
If you get stuck or have any questions about building AI apps, join:
If you have product feedback or errors while building visit: