Skip to main content
SEMastery
course

Learn .NET Free on Microsoft Learn: The Complete Beginner Guide

A friendly, step-by-step guide to learning C#, ASP.NET Core, Blazor, and EF Core for free on Microsoft Learn, with a study plan and roadmap.

13 min readUpdated April 12, 2026

Learning to code can feel like standing at the bottom of a tall mountain. You look up and think, "Where do I even start?" The good news is that there is a free, well-marked trail to the top. It is called Microsoft Learn. This guide is your map.

By the end, you will know exactly what to study, in what order, and how to earn shiny rewards along the way. No payment. No tricks. Just learning.

A real-life analogy: learning to cook

Think about learning to cook.

You do not start by making a five-course dinner for twenty guests. You start small. First you boil an egg. Then you make toast. Then you put them together. Step by step, each small win gives you the courage to try the next dish.

Microsoft Learn works the same way. It breaks .NET into tiny "recipes" called modules. Each module teaches one small skill. You finish a few modules, and suddenly you can make a whole "meal" (a real app). You never feel lost, because every step is clear and short.

So let us walk into the kitchen and start cooking.

What is Microsoft Learn?

Microsoft Learn is the official free training website from Microsoft. You can find the .NET training home at learn.microsoft.com/training/dotnet.

It teaches you how to build apps with .NET. .NET is the toolbox that millions of developers use to build websites, phone apps, games, and cloud services. The main language you write in is C# (say it "C sharp").

Here are the words you will see a lot. Let us make them simple:

WordWhat it really means
UnitOne single page or lesson. The smallest piece.
ModuleA small group of units about one skill. Like one recipe.
Learning pathA group of modules that go together. Like a full meal.
Knowledge checkA short quiz at the end of a module.
XPExperience points. Numbers that go up as you learn.
BadgeA reward for finishing one module.
TrophyA bigger reward for finishing a whole path.

That is the whole language of Microsoft Learn. Now you can read any page and understand it.

The main .NET learning paths

There are four big areas a beginner should care about. Think of them as four floors of a building. You start on the ground floor and climb up.

1. C# (the language)

This is where everyone starts. C# is the language you write code in. If you skip this, nothing else will make sense.

The first path is called "Write your first code using C#". It has six beginner modules. You learn how to print text, store data in variables, and do math.

Here is the kind of code you write in your very first module:

// Your first line of C#
Console.WriteLine("Hello, world!");
 
// Store a value in a variable
string name = "Maya";
Console.WriteLine($"Hi, {name}!");

That $"..." is a fancy way to drop a variable right into a sentence. Small thing, but you use it every day.

After the first path, you move to "Build .NET applications with C#". Here you learn loops, methods, and how to keep code tidy. By the end you can write real programs that make choices and repeat work.

2. ASP.NET Core (websites and APIs)

Once you can write C#, you can build websites. ASP.NET Core is the part of .NET that makes web apps and APIs (the hidden services that apps talk to).

The path "Understand ASP.NET Core fundamentals" teaches the basics of both the front (what users see) and the back (what runs on the server). You learn how a web request travels from a browser to your code and back.

A tiny web API in modern .NET looks like this:

var app = WebApplication.CreateBuilder(args).Build();
 
app.MapGet("/hello", () => "Hello from the web!");
 
app.Run();

Just a few lines, and you have a working web service. Note the route is the text after the slash. When you write a route with a value in it, like a product id, you wrap it in braces in your code, for example "/products/{id}".

3. Blazor (web apps with C#)

Normally, websites need JavaScript for buttons and forms. Blazor is special. It lets you build interactive web pages using C# instead. If you already know C#, you do not have to learn a whole new language for the screen.

The path "Build web apps with Blazor" teaches you to make components, show data, handle clicks, and route between pages.

A Blazor component is mostly normal HTML with a sprinkle of C#:

<h3>Counter</h3>
<p>You clicked @count times.</p>
<button @onclick="Increment">Click me</button>
 
@code {
    private int count = 0;
    private void Increment() => count++;
}

Click the button, and the number goes up. All in C#. No JavaScript needed.

4. EF Core (saving data)

Real apps need to remember things: users, orders, messages. Entity Framework Core (EF Core for short) is the tool that saves your C# objects into a database and reads them back.

The magic of EF Core is that you write C# instead of database language. EF Core turns your C# into the database commands for you:

// Ask the database for all books, ordered by title
var books = await db.Books
    .OrderBy(b => b.Title)
    .ToListAsync();

That reads almost like English: "books, ordered by title, as a list." Behind the scenes, EF Core writes the real database query.

Order matters. You would not learn to drive on a highway first. Here is a safe, friendly order. Follow it top to bottom.

The recommended learning order, from first step to finished project.

Here is the same plan as a table, with a rough idea of time. Times are gentle estimates. Go at your own pace.

StepPathWhy it comes hereRough time
1Write your first code using C#You must speak the language first.3 to 4 hours
2Build .NET applications with C#Learn loops, methods, and structure.4 to 6 hours
3Understand ASP.NET Core fundamentalsMove from console apps to the web.4 to 5 hours
4Save data with EF CoreMake your apps remember things.3 to 4 hours
5Build web apps with BlazorBuild screens users can click.5 to 7 hours
6A small project of your ownGlue it all together.As long as you like

A good rhythm is 30 to 60 minutes a day. Short and steady beats one long, tiring weekend. If you keep that pace, you can reach Blazor in about a month.

How the in-browser exercises work

This is the best part for beginners. Many modules have a hands-on exercise that runs right in your web browser. You do not install anything. You do not set up a computer. You just type and run.

Here is what a typical exercise feels like:

Inside a browser exercise

Read
Type
Run
Check

Steps

1

Read

A short instruction tells you what to build.

2

Type

You write code in the editor on the page.

3

Run

You press a button and your code runs live.

4

Check

You compare your output to the expected result.

The simple loop you repeat in every hands-on module.

Because it runs in the browser, you cannot break anything. If your code has a mistake, you just fix it and run again. Mistakes are normal. Every developer makes hundreds of them. The browser is a safe place to fail and try again.

One note for later: some advanced Azure cloud modules used to offer a free "sandbox." Those sandboxes are being retired, so a few cloud exercises now ask for a free Azure trial account. But the core C#, ASP.NET Core, Blazor, and EF Core beginner exercises still run free in the browser. You will not need a credit card to learn the basics.

When you are ready to build real apps on your own computer, you install two free things:

1. The .NET SDK   -> the toolbox that builds and runs your code
2. VS Code        -> a free, friendly code editor

Then you can create a new app from your terminal with one command:

// In your terminal, this creates a new console app
dotnet new console -o MyFirstApp

But again, you do not need any of this to start. The browser is enough for your first weeks.

How achievements work: XP, badges, and trophies

Microsoft Learn turns studying into a little game. As you learn, you collect rewards. This is not just for fun. Seeing your progress grow keeps you going on the hard days.

There are three kinds of reward:

  • XP (experience points). Numbers that go up every time you finish a unit, module, or path. You can see the XP value listed next to each piece of content before you even start it.
  • Badges. You earn a badge when you finish one whole module, including its knowledge check quiz.
  • Trophies. You earn a trophy when you finish a whole learning path (all its modules).
How small wins add up to big rewards on your profile.

All of these land on your profile page. To see them, sign in, go to your profile, and pick Achievements in the left column. You will find every badge, trophy, and your total XP there.

The best part: you can share your badges and trophies. You can post them on social media or add them to a resume. They are real proof that you finished the work. For a new developer with no job history yet, that proof is gold.

To earn anything, you must be signed in. Use a free Microsoft account. If you study while signed out, the site will not save your progress or hand out rewards. So sign in first, every time.

Tips to actually finish

Starting is easy. Finishing is the trick. Here are honest tips that work.

TipWhy it helps
Study a little every daySmall daily habits beat rare big sessions.
Always sign in firstNo sign-in means no saved progress and no rewards.
Type the code yourselfCopy-paste teaches your hands nothing. Type it.
Do not skip the exercisesReading is not doing. The browser exercises are where you learn.
Take notes in your own wordsExplaining a thing simply proves you understand it.
Build a tiny project after each pathUse the skill, or you will forget it.
It is okay to re-readIf a module is fuzzy, do it again. No shame.

One more big tip: build a project of your own as soon as you can. A to-do list. A simple blog. A number-guessing game. It does not matter what it is. The moment you build something that is yours, the lessons stop being facts and start being skills.

A note on the wider .NET world

As you grow, you will hear about extra tools that people add to .NET apps. A few popular ones, like MediatR, MassTransit, and AutoMapper, recently moved to paid commercial licenses for larger use. You do not need any of them as a beginner. Plain .NET does everything you need to learn. Mentioning it now just saves you a surprise later.

Also good to know: .NET 10 is the current long-term support release, so it is a safe, stable version to learn on. The language keeps growing too. C# 14 has shipped, and an even newer feature called union types is being previewed for C# 15 in the .NET 11 preview. You do not need the newest features to learn. The basics in this guide stay true across versions.

Going further: the free C# certification

When you finish the core C# training, there is a nice bonus. Microsoft and freeCodeCamp offer a free Foundational C# Certification. It includes a full C# training course hosted on Microsoft Learn and an 80-question exam. It is free and open to anyone in the world.

Earning it gives you a real, shareable certificate. It is a great goal to aim for after you finish the first two C# paths in the plan above.

Quick recap

  • Microsoft Learn is free. All the .NET paths and most beginner exercises cost nothing.
  • Learn the words. A unit is a page, a module is a recipe, a path is a full meal.
  • Follow the order: C# first, then ASP.NET Core, then EF Core, then Blazor, then your own project.
  • Use the browser exercises. They run live, you cannot break anything, and they are where real learning happens.
  • Collect rewards. Earn XP for units, badges for modules, and trophies for paths. Sign in so they save.
  • Study a little every day and type the code yourself. Steady beats heroic.
  • Build a project as soon as you can, and aim for the free Foundational C# Certification.

You have the map now. The trail is open and free. Take the first small step today, and keep walking. One module at a time, you will reach the top.

References and further reading