# Generative AI For Beginners .NET | A Course 🚀

**URL:** <https://onehack.st/t/generative-ai-for-beginners-net-a-course/302600>\
**Category:** Tools & Scripts\
**Tags:** learning, programming, privacy, freebies, ai\
**Created:** [March 24, 2025, 10:00pm UTC](https://onehack.st/t/generative-ai-for-beginners-net-a-course/302600 "2025-03-24T22:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aina](https://onehack.st/user_avatar/onehack.st/aina/32/167469_2.png) [@Aina](https://onehack.st/u/Aina)\
**Post date:** [March 24, 2025, 10:00pm UTC](https://onehack.st/t/generative-ai-for-beginners-net-a-course/302600/1 "2025-03-24T22:00:00Z")

</div>

# Generative AI for Beginners .NET - A Course

## Practical lessons teaching you how to build Generative AI applications in .NET

[![GitHub license](https://camo.githubusercontent.com/7b979c5f4d2994240e34d51efdd92cd80269f8c2bcbfd3ac83715030651654fa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6963726f736f66742f47656e657261746976652d41492d466f722d626567696e6e6572732d646f746e65742e737667)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/LICENSE) [![GitHub contributors](https://camo.githubusercontent.com/299a520f80613281e31dbc8d9b2e430ee635d948e7a41216b8fdda5ef3a25626/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6d6963726f736f66742f47656e657261746976652d41492d466f722d426567696e6e6572732d446f746e65742e737667)](https://github.com/microsoft/Generative-AI-For-Beginners-Dotnet/graphs/contributors/) [![GitHub issues](https://camo.githubusercontent.com/22f1a5abe744f03bbecaac0dbe2547e1263c596d0b35a5a0cb559103b7aacc53/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d6963726f736f66742f47656e657261746976652d41492d466f722d426567696e6e6572732d446f746e65742e737667)](https://github.com/microsoft/Generative-AI-For-Beginners-Dotnet/issues/) [![GitHub pull-requests](https://camo.githubusercontent.com/c3f87a61fcdca1c1c7a3149da3e90a35515d32ef374b55a321fc6c58bd6046ba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6d6963726f736f66742f47656e657261746976652d41492d466f722d426567696e6e6572732d446f746e65742e737667)](https://github.com/microsoft/Generative-AI-For-Beginners-Dotnet/pulls/) [![PRs Welcome](https://camo.githubusercontent.com/88482ebfc5e3e4f2d667148ab6a3eb55948789f1dba71dfa0eb2e05afe02958c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://makeapullrequest.com/)

[![GitHub watchers](https://camo.githubusercontent.com/f7e42e962820bb938ceebcf1e2b998f72a5e63b90cedae777672e1362c9c1210/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f6d6963726f736f66742f47656e657261746976652d41492d466f722d426567696e6e6572732d446f746e65742e7376673f7374796c653d736f6369616c266c6162656c3d5761746368)](https://github.com/microsoft/Generative-AI-For-Beginners-Dotnet/watchers/) [![GitHub forks](https://camo.githubusercontent.com/a7f01588f5a9ad743b0decf92be0ed25f1cfbf82418f00e6f6552721ed70153b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d6963726f736f66742f47656e657261746976652d41492d466f722d426567696e6e6572732d446f746e65742e7376673f7374796c653d736f6369616c266c6162656c3d466f726b)](https://github.com/microsoft/Generative-AI-For-Beginners-Dotnet/network/) [![GitHub stars](https://camo.githubusercontent.com/5a99156799695fdddbff78a16e58bf11a5bb8b810b0ae4a9c16179557849fa35/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d6963726f736f66742f47656e657261746976652d41492d466f722d426567696e6e6572732d446f746e65742e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/microsoft/Generative-AI-For-Beginners-Dotnet/stargazers/)

[![Azure AI Community Discord](https://camo.githubusercontent.com/f4d9156fd0c0398055e20e01c07238f1d27cf2f00c7659bc67fe60d23cd33bd3/68747470733a2f2f646362616467652e76657263656c2e6170702f6170692f7365727665722f42795277754545674834)](https://discord.com/invite/ByRwuEEgH4)

[![Generative AI for Beginners .NET logo](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/raw/main/images/main-logo.jpg)](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/images/main-logo.jpg)

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](https://docs.github.com/en/get-started/exploring-projects-on-github/saving-repositories-with-stars) to find it easier later.

➡Get your own copy by [Forking this repo](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/fork) and find it next in your own repositories.

## ✨ What’s New!

We’re constantly improving this course with the latest AI tools and models:

- **phi4-mini model support** : The [Ollama Codespace](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/02-SetupDevEnvironment/getting-started-ollama.md) now automatically downloads the [phi4-mini model](https://ollama.com/library/phi4-mini) - Microsoft’s compact yet powerful LLM. Try it in samples like:
  - [Chat Application](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/03-CoreGenerativeAITechniques/src/BasicChat-03Ollama/Program.cs) - Experience fast responses with this efficient model
  - [RAG Implementation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/03-CoreGenerativeAITechniques/src/RAGSimple-10SKOllama/Program.cs) - See how phi4-mini handles retrieval-augmented generation tasks
  - Learn more about the model in the [Phi Cookbook](https://aka.ms/phicookbook)

## 🚀 Introduction

Generative AI is transforming software development, and .NET is no exception. This course aims to simplify the journey by offering:

- Short 5-10 minute videos for each lesson.
- Fully functional .NET code samples you can run and explore.
- Integration with tools like **GitHub Codespaces** and **GitHub Models** for seamless setup and fast time-to-code. But if you want to run the samples locally with your own models, you can totally do that too.

You’ll learn how to implement Generative AI into .NET projects, from basic text generation to building full-fledged solutions using **GitHub Models** , **Azure OpenAI Services** and **local models with Ollama**.

## 📦 Each Lesson Includes

- **Short Video** : A quick overview of the lesson (5-10 minutes).
- **Complete Code Samples** : Fully functional and ready to run.
- **Step-by-Step Guidance** : Simple instructions to help you learn and implement the concepts.
- **Deep Dive References** : This course focuses on the practical implementation of GenAI, to get deeper into the theoretical we also provide links to explanations in [Generative AI for Beginners - A Course](https://github.com/microsoft/generative-ai-for-beginners) when needed.

## 🗃 Lessons

| # | **Lesson Link** | **Description** |
| --- | --- | --- |
| 01 | [**Intro to Generative AI Basics for .NET Developers**](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/01-IntroToGenAI/readme.md) | \* Overview of generative models and their applications in .NET |
| 02 | [**Setting Up for .NET Development with Generative AI**](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/02-SetupDevEnvironment/readme.md) | \* Using libraries like **Microsoft.Extensions.AI** and **Semantic Kernel**. |

- Setup providers like GitHub Models, Azure AI Foundry, and local development like Ollama.|  
|03|[**Core Generative AI Techniques with .NET**](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/03-CoreGenerativeAITechniques/readme.md)|\* Text generation and conversational flows.
- Multimodal capabilities (vision and audio).
- Agents|  
|04|[**Practical .NET Generative AI Samples**](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/04-PracticalSamples/readme.md)|\* Complete samples demonstrating GenAI in real-life scenarios
- Semantic search applications.
- Multiple agent applications|  
|05|[**Responsible Use of Generative AI in .NET Apps**](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/05-ResponsibleGenAI/readme.md)|\* Ethical considerations, bias mitigation, and secure implementations.|

## 🌐 Multi-Language Support

| Language | Code | Link to Translated README | Last Updated |
| --- | --- | --- | --- |
| Chinese (Simplified) | zh | [Chinese Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/zh/README.md) | 2025-02-19 |
| Chinese (Traditional) | tw | [Chinese Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/tw/README.md) | 2025-02-19 |
| French | fr | [French Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/fr/README.md) | 2025-02-19 |
| Japanese | ja | [Japanese Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/ja/README.md) | 2025-02-19 |
| Korean | ko | [Korean Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/ko/README.md) | 2025-02-19 |
| Portuguese | pt | [Portuguese Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/pt/README.md) | 2025-02-19 |
| Spanish | es | [Spanish Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/es/README.md) | 2025-02-19 |
| German | de | [German Translation](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/translations/de/README.md) | 2025-02-19 |

## 🛠 What You Need

To get started, you’ll need:

1. A **GitHub account** (free is fine!) to [fork this entire repo](https://github.com/microsoft/generative-ai-for-beginners-dotnet/fork) to your own GitHub account.
2. **GitHub Codespaces enabled** for instant coding environments. You can enable GitHub Codespaces in your repository settings. Learn more about GitHub Codespaces [here](https://docs.github.com/en/codespaces).
3. Create your copy by [Forking this repo](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/fork), or use the `Fork` button at the top of this page.
4. A basic understanding of **.NET development**. Learn more about .NET [here](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet).

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:

- **Run in GitHub Codespaces** : With one click, you’ll get a pre-configured environment to test and explore the lessons.
- **Leverage GitHub Models** : Try out AI-powered demos hosted directly within this repo, we explain more in the lessons, as we go. _(If you want to learn more about GitHub Models, click [here](https://docs.github.com/github-models))_

Then when you’re ready to expand we also have guides for:

- Upgrading to **Azure OpenAI Services** for scalable and enterprise-ready solutions.
- Using **Ollama** to run models locally on your hardware for enhanced privacy and control.

[Let’s start learning Generative AI and .NET!](https://github.com/microsoft/Generative-AI-for-beginners-dotnet/blob/main/02-SetupDevEnvironment/readme.md) 🚀

`Source: Github`

## ENJOY & HAPPY LEARNING! ❤
