.NET Project Setup From Scratch Using These 6 Best Practices

  Рет қаралды 28,990

Milan Jovanović

Milan Jovanović

Күн бұрын

Пікірлер: 77
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
Want to master Clean Architecture? Go here: bit.ly/3PupkOJ Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt
@fieryscorpion
@fieryscorpion 2 күн бұрын
I’m interested in Modular Monolith course. I’ll get it. Could you please also make it in other programming languages like Java/ Spring, Typescript/ Node/ React, Go etc. with best practices? I believe as programmers being good at these popular languages/ frameworks will make us competitive in the job market.
@vishrb1972
@vishrb1972 15 күн бұрын
Thanks!
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
Thanks a lot!
@ryan-heath
@ryan-heath 15 күн бұрын
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 ... 😅
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
We can start slowly with older projects. Assuming it's split into multiple assemblies (projects), we can turn it on one .csproj at a time and go from there
@aathira6074
@aathira6074 6 күн бұрын
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
@MilanJovanovicTech
@MilanJovanovicTech 6 күн бұрын
Not much going on behind the scenes
@JeevanBhandari-n4h
@JeevanBhandari-n4h 15 күн бұрын
This is so cool. Thanks Milan for sharing 😍
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
Awesome, glad you found it useful :)
@carstenberggreen7509
@carstenberggreen7509 6 күн бұрын
Very useful and great overview!
@MilanJovanovicTech
@MilanJovanovicTech 6 күн бұрын
Thank you!
@dibley1973
@dibley1973 11 күн бұрын
Some amazing tips in there. Thank you for sharing.
@MilanJovanovicTech
@MilanJovanovicTech 10 күн бұрын
Most welcome!
@rajdeepsharma-u7w
@rajdeepsharma-u7w 3 күн бұрын
Learned something new
@MilanJovanovicTech
@MilanJovanovicTech 2 күн бұрын
Happy to help!
@dotnetMasterCSharp
@dotnetMasterCSharp 15 күн бұрын
Most useful thank you Milan!
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
Glad it was helpful!
@Gonzo345
@Gonzo345 14 күн бұрын
Small but useful tips. Thanks!
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
Glad it was helpful!
@jesusdicent2
@jesusdicent2 15 күн бұрын
Very great, thanks for the suggestions.
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
Sure thing :)
@nian_me
@nian_me 8 күн бұрын
This is new to me,,, Thanks
@MilanJovanovicTech
@MilanJovanovicTech 8 күн бұрын
You're welcome!
@immanish133
@immanish133 9 күн бұрын
great video tutorial
@MilanJovanovicTech
@MilanJovanovicTech 9 күн бұрын
Thanks!
@antonmartyniuk
@antonmartyniuk 15 күн бұрын
Great things to start a project please. I also add logging and open telemetry
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
Logging is a must
@theknittingclass7218
@theknittingclass7218 13 күн бұрын
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
@MilanJovanovicTech
@MilanJovanovicTech 12 күн бұрын
Does the .NET version between services matter? Assuming they communicate via HTTP or using a message broker
@ShivamPatel-ld9xr
@ShivamPatel-ld9xr 14 күн бұрын
Does Aspire have support of container scaling?
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
Yes - you call WithReplica(N) and specify how many you want
@jessekela165
@jessekela165 11 күн бұрын
Any tips on setting docker compose launch with debugging on VSCode?
@MilanJovanovicTech
@MilanJovanovicTech 10 күн бұрын
Not really. I don't use VS Code for .NET development
@fenggu1435
@fenggu1435 15 күн бұрын
Thanks for sharing
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
My pleasure
@shaheennamboori
@shaheennamboori 15 күн бұрын
Love it ❤
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
Awesome!
@RamasamyN-o5p
@RamasamyN-o5p 13 күн бұрын
Really good.
@MilanJovanovicTech
@MilanJovanovicTech 13 күн бұрын
Thanks!
@developmentroselino
@developmentroselino 5 күн бұрын
enabling GC server mode might included, since in .NET 9 DATAS is enabled by default ?
@MilanJovanovicTech
@MilanJovanovicTech 4 күн бұрын
Don't know
@FhPb1
@FhPb1 15 күн бұрын
Great video Milan! One question, that option to Add Docker support is related to the .NET version? or to the IDE version? (Asking because i'm currently working into a .NET 6 project + Visual Studio 2022 and i tried to right click to check if i had that option and i don't)
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
VS 2022 should work
@ONEON26
@ONEON26 13 күн бұрын
What would you use for approval workflow? Learning Elsa 3.0 is difficult since no doc
@MilanJovanovicTech
@MilanJovanovicTech 12 күн бұрын
How does this help project setup?
@MrBrunoExtreme1
@MrBrunoExtreme1 15 күн бұрын
Thank you for the video. Let's say I wan't to add a web app into this solution that comunicates with this API, what would be needed to do in docker-compose?
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
Define a service and how to start the container (which image/Dockerfile to use)
@Hookmasterx
@Hookmasterx 10 күн бұрын
Can we do the same things in Rider?
@MilanJovanovicTech
@MilanJovanovicTech 10 күн бұрын
Yes
@valtinvest
@valtinvest 12 күн бұрын
Where can i copy your visual studio color settings?)
@MilanJovanovicTech
@MilanJovanovicTech 11 күн бұрын
Get ReSharper
@ahmedsherifali9319
@ahmedsherifali9319 10 күн бұрын
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
@MilanJovanovicTech
@MilanJovanovicTech 10 күн бұрын
Yep, you'll have to fix that manually :/
@ahmedsherifali9319
@ahmedsherifali9319 10 күн бұрын
@@MilanJovanovicTech can I send my GitHub repo to you i follow every step many times
@robcannon
@robcannon 15 күн бұрын
There has got to be a way of automating all of this so it is included in 'dotnet new'
@calvinwilson3617
@calvinwilson3617 14 күн бұрын
You can absolutely make templates that do these things, the main reason for a video like this like this is to understand what is being setup, and why these things are set up the way they are. Personally my favorite existing template is the clean architecture template by Steve Smith, but even with that template there is quite a few changes i would make Its likely similar for everyone. With this, you can find a template you personally like, make the needed changes based on the video
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
It should be possible to create a template
@transtechmuthu
@transtechmuthu 15 күн бұрын
Thanks
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
No problem!
@facundoferrero1395
@facundoferrero1395 15 күн бұрын
Does this work only in net9? in my net8 its breaking
@MilanJovanovicTech
@MilanJovanovicTech 15 күн бұрын
It should work fine. What's breaking?
@facundoferrero1395
@facundoferrero1395 15 күн бұрын
@@MilanJovanovicTech says the net framework, "ResolvePackageAssets" task was not given a value for the required parameter "TargetFramework".
@flygonfiasco9751
@flygonfiasco9751 14 күн бұрын
@@facundoferrero1395try deleting bin/obj folders for your projects, then try a rebuild
@facundoferrero1395
@facundoferrero1395 12 күн бұрын
@@MilanJovanovicTech Problem was that i had 2 nuget package sources, needed to configure source mapping, also since my sln is inside a folder, i had to put the prop files in the root folder
@antondoit
@antondoit 14 күн бұрын
nice
@MilanJovanovicTech
@MilanJovanovicTech 14 күн бұрын
Thanks
@LarisaN123
@LarisaN123 14 күн бұрын
👍
@MilanJovanovicTech
@MilanJovanovicTech 13 күн бұрын
👍
@VHMate
@VHMate 13 күн бұрын
Very useful tutorial. But I have a problem with adding .NET Aspire Orchestrator Support. The error message says: ,,One or more errors were encountered while creating project MotivPlan. The generated project content may be incomplete. The SDK 'Aspire.AppHost.Sdk/9.0.0' specified could not be found. C:\Users\matte\source epos\MotivPlan\MotivPlan.AppHost\MotivPlan.AppHost.csproj" What's next?
@MilanJovanovicTech
@MilanJovanovicTech 13 күн бұрын
Missing .NET 9?
@VHMate
@VHMate 12 күн бұрын
@@MilanJovanovicTech No, I created a Web Api with .NET 9. But I tried to force to download Aspire.AppHost.Sdk from NuGet to WebApi, and then I tried to create Aspire Orchestrator Support, and it works, but without forcing to download Aspire.Apphost.Sdk to WebApi, it throws this error.
@VHMate
@VHMate 9 күн бұрын
@@MilanJovanovicTech No, but I solved it with forcing download aspire. But Milan, one more question: Can docker love the solution which is: to centralize the targetframework in Directory.Build.props? Because I met that problem in Azure Pipeline (#12 2.095 /usr/share/dotnet/sdk/8.0.405/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(96,5): error NETSDK1013: The TargetFramework value '' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly. [/src/MotivPlan.WebApi/MotivPlan.WebApi.csproj]), I removed targetframework from webapi.csproj, and I added it in Directory.Build.props, and the pipeline runs inappropriately.
@LarisaN123
@LarisaN123 Күн бұрын
👍
@MilanJovanovicTech
@MilanJovanovicTech Күн бұрын
Thanks!
The Right Way To Build Async APIs in ASP.NET Core
20:12
Milan Jovanović
Рет қаралды 27 М.
Event Sourcing for .NET Developers: From Zero to Implementation
19:55
Milan Jovanović
Рет қаралды 10 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Dockerize Your .NET Application in 5 Minutes!
7:42
Amichai Mantinband
Рет қаралды 22 М.
"BEST C++ CODE ever written" // Code Review
27:38
The Cherno
Рет қаралды 121 М.
Acceptance Testing Is the FUTURE of Programming
15:58
Continuous Delivery
Рет қаралды 41 М.
Zuckerberg DROPS AI BOMBSHELL: The End Of Software Engineers
19:41
7 Design Patterns EVERY Developer Should Know
23:09
ForrestKnight
Рет қаралды 250 М.
Your REST API Errors Are Wrong. Problem Details Will Fix This
16:14
Milan Jovanović
Рет қаралды 13 М.
Clean Input Validation With FluentValidation in .NET
19:56
Milan Jovanović
Рет қаралды 15 М.
The Fix For Your Database Performance Issues in .NET
9:12
Nick Chapsas
Рет қаралды 90 М.
пранк🤣😂😂
0:51
Numdexx1
Рет қаралды 1,2 МЛН
Halloween is coming
0:12
Younes Zarou
Рет қаралды 3,4 МЛН
КОРОЧЕ ГОВОРЯ, НЕДЕЛЯ БЕЗ ТЕЛЕФОНА
3:54
ТЕЛЕФОН МЕНЯЕТ ЦВЕТ😅 #upx
0:34
RanF
Рет қаралды 639 М.
ТЕЛЕФОН МЕНЯЕТ ЦВЕТ😅 #upx
0:34
RanF
Рет қаралды 639 М.