.NET Project Setup From Scratch Using These 6 Best Practices

Поділитися
Вставка
  • Опубліковано 9 лют 2025

КОМЕНТАРІ • 83

  • @MilanJovanovicTech
    @MilanJovanovicTech  Місяць тому +4

    Want to master Clean Architecture? Go here: bit.ly/3PupkOJ
    Want to unlock Modular Monoliths? Go here: bit.ly/3SXlzSt

    • @fieryscorpion
      @fieryscorpion 17 днів тому +1

      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.

  • @ryan-heath
    @ryan-heath Місяць тому +22

    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  Місяць тому +1

      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

  • @vishrb1972
    @vishrb1972 Місяць тому +2

    Thanks!

  • @rajdeepsharma-u7w
    @rajdeepsharma-u7w 18 днів тому +1

    Learned something new

  • @nove1398
    @nove1398 13 днів тому

    Great information being shared here, overlooked most times

  • @aathira6074
    @aathira6074 22 дні тому

    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

  • @JeevanBhandari-n4h
    @JeevanBhandari-n4h Місяць тому +1

    This is so cool. Thanks Milan for sharing 😍

  •  12 днів тому

    Useful thank you

  • @carstenberggreen7509
    @carstenberggreen7509 22 дні тому

    Very useful and great overview!

  • @dibley1973
    @dibley1973 26 днів тому

    Some amazing tips in there. Thank you for sharing.

  • @nian_me
    @nian_me 24 дні тому

    This is new to me,,, Thanks

  • @antonmartyniuk
    @antonmartyniuk Місяць тому

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

  • @Gonzo345
    @Gonzo345 Місяць тому

    Small but useful tips. Thanks!

  • @mreshboboyev
    @mreshboboyev Місяць тому

    Most useful thank you Milan!

  • @jesusdicent2
    @jesusdicent2 Місяць тому

    Very great, thanks for the suggestions.

  • @adaveshm8040
    @adaveshm8040 12 днів тому +1

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

  • @fenggu1435
    @fenggu1435 Місяць тому

    Thanks for sharing

  • @transtechmuthu
    @transtechmuthu Місяць тому

    Thanks

  • @immanish133
    @immanish133 24 дні тому

    great video tutorial

  • @theknittingclass7218
    @theknittingclass7218 29 днів тому +1

    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  28 днів тому

      Does the .NET version between services matter? Assuming they communicate via HTTP or using a message broker

  • @RamasamyN-o5p
    @RamasamyN-o5p 29 днів тому

    Really good.

  • @shaheennamboori
    @shaheennamboori Місяць тому

    Love it ❤

  • @FhPb1
    @FhPb1 Місяць тому

    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)

  • @developmentroselino
    @developmentroselino 20 днів тому

    enabling GC server mode might included, since in .NET 9 DATAS is enabled by default ?

  • @ONEON26
    @ONEON26 28 днів тому

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

  • @MrBrunoExtreme1
    @MrBrunoExtreme1 Місяць тому

    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  Місяць тому +1

      Define a service and how to start the container (which image/Dockerfile to use)

  • @jessekela165
    @jessekela165 26 днів тому

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

  • @ahmedsherifali9319
    @ahmedsherifali9319 26 днів тому

    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  26 днів тому

      Yep, you'll have to fix that manually :/

    • @ahmedsherifali9319
      @ahmedsherifali9319 26 днів тому

      @@MilanJovanovicTech can I send my GitHub repo to you i follow every step many times

  • @ShivamPatel-ld9xr
    @ShivamPatel-ld9xr Місяць тому +1

    Does Aspire have support of container scaling?

    • @MilanJovanovicTech
      @MilanJovanovicTech  Місяць тому +2

      Yes - you call WithReplica(N) and specify how many you want

  • @valtinvest
    @valtinvest 27 днів тому

    Where can i copy your visual studio color settings?)

  • @Hookmasterx
    @Hookmasterx 26 днів тому

    Can we do the same things in Rider?

  • @vijai851
    @vijai851 9 днів тому

    Good video.Can you provide the source code?

  • @antondoit
    @antondoit Місяць тому

    nice

  • @facundoferrero1395
    @facundoferrero1395 Місяць тому

    Does this work only in net9? in my net8 its breaking

    • @MilanJovanovicTech
      @MilanJovanovicTech  Місяць тому

      It should work fine. What's breaking?

    • @facundoferrero1395
      @facundoferrero1395 Місяць тому

      @@MilanJovanovicTech says the net framework, "ResolvePackageAssets" task was not given a value for the required parameter "TargetFramework".

    • @flygonfiasco9751
      @flygonfiasco9751 Місяць тому

      @@facundoferrero1395try deleting bin/obj folders for your projects, then try a rebuild

    • @facundoferrero1395
      @facundoferrero1395 28 днів тому +1

      @@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

  • @LarisaN123
    @LarisaN123 29 днів тому

    👍

  • @VHMate
    @VHMate 28 днів тому

    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  28 днів тому

      Missing .NET 9?

    • @VHMate
      @VHMate 28 днів тому

      @@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 25 днів тому

      @@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 16 днів тому

    👍