.NET Project Setup From Scratch Using These 6 Best Practices

preview_player
Показать описание

Want to build a rock-solid .NET project that won't give you headaches later? This video shows you how to set up your project the right way from day one. We'll cover everything from basic setup to some really cool tools - like using .editorconfig to keep your code clean, managing all your packages in one place, and catching bugs early with code analysis. You'll also learn how to package your app with Docker, orchestrate it using Docker Compose or the shiny new .NET Aspire, and automate your builds with GitHub Actions. Perfect for anyone who wants to level up their .NET game and build projects like a pro.

Central Package Management in .NET - Simplify NuGet Dependencies

Improving Code Quality in C# With Static Code Analysis

Check out my courses:

Read my Blog here:

Join my weekly .NET newsletter:

Chapters
0:00 Creating the project
1:07 Code style - .editorconfig
2:48 Build configuration
4:20 Central package management
7:04 Code quality - static code analysis
10:42 Containerization
12:25 Orchestration - Docker Compose
13:18 Orchestration - Aspire
15:02 CI/CD pipeline - GitHub Actions
Рекомендации по теме
Комментарии
Автор

One of my bookmark video❤
It would be interesting to see behind the scene fixes... may be on a separate video too so that the purpose of this video still be full filled and clean.

Thanks for this

aathira
Автор

Thank you Milan, learn something new.

rajeewaperera
Автор

Thanks for making videos that go way beyond the overly common "Hello World" app example!

thefront
Автор

Great job! Thanks for making this valuable content.

henriquemarques
Автор

Great information being shared here, overlooked most times

nove
Автор

0 error(s), 0 warning(s) 👍
This is always the first thing I want to enforce.

But don't bother when you need to maintain older projects that didn't have this from the start ... 😅

ryan-heath
Автор

This is so cool. Thanks Milan for sharing 😍

JeevanBhandari-nh
Автор

Thanks for your sharing!It’s very helpful

xiaodongchen
Автор

Some amazing tips in there. Thank you for sharing.

dibley
Автор

Very useful and great overview! <3 Thumbs up!!!

scarzix
Автор

Great things to start a project please. I also add logging and open telemetry

antonmartyniuk
Автор

Very great, thanks for the suggestions.

jesusdicent
Автор

Adding Directory.Build.props is giving circular dependency error. Any idea?

adaveshm
Автор

I added the .editorconfig file you shared in the description, and these configuration settings are also applying to the Migration file. For example, I receive an error due to = true:error". Is there a way to exclude certain files from these settings?

pathummadhusanka
Автор

Do you use a copilot or some AI to help you code?
If so, have you done any customization?
I would love to see a video showing the customizations

airton.castro
Автор

I find it very useful. But I have a question, if I am working on a project having few microservices and class library all using .Net8 then should I be creating all under single solution? If yes, then how should I be managing GitHub repos as different team will work on different microservices. Thanks

theknittingclass
Автор

Does Aspire have support of container scaling?

ShivamPatel-ldxr
Автор

What would you use for approval workflow? Learning Elsa 3.0 is difficult since no doc

ONEON
Автор

Thanks For video but when add new project to solution the condition to make package global don't work with me can you help me with the solution

ahmedsherifali
Автор

Any tips on setting docker compose launch with debugging on VSCode?

jessekela
visit shbcf.ru