What is .NET Aspire? Why do you NEED it in every .NET app? How to get started in minutes!

Поделиться
HTML-код
  • Опубликовано: 14 янв 2025

Комментарии • 71

  • @benjsoft
    @benjsoft 9 месяцев назад +9

    Thanks James, your demo makes .NET Aspire interesting and easy to understand :D

  • @alkishadjinicolaou5831
    @alkishadjinicolaou5831 9 месяцев назад +1

    As always you have been excellent James! Thanks!

  • @danielbub
    @danielbub 9 месяцев назад +9

    Great video!
    Can you make a video on how to deploy it?
    Afaik, the aspire projet reference the hardcoded .csproj file

  • @Mr767267
    @Mr767267 9 месяцев назад +3

    This is crazy simple. Thanks for this video, as always a fantastic tutorial.

  • @benjsoft
    @benjsoft 9 месяцев назад +14

    Hope next time you can demo how to add .NET MAUI application in .NET Aspire

  • @macmcmillen6282
    @macmcmillen6282 4 месяца назад +1

    That is super cool. Thanks James!

  • @onurbarlik
    @onurbarlik 4 месяца назад +1

    thanks for this detailed informative video. I need more samples about deploying to kubernetes also, can you describe this too? There is not enough information about this.

    • @JamesMontemagno
      @JamesMontemagno  4 месяца назад

      if you already have manifests just keep deploying like you do today. Just add some more or update connection strings. if you want something generated off the manifest you can use Aspir8: learn.microsoft.com/en-us/dotnet/aspire/deployment/overview#deploy-to-kubernetes

  • @LosWochos76
    @LosWochos76 7 месяцев назад +2

    That looks awesome. I would like to see more, eg using a reverse proxy like Nginx, configuring SSL with letsencrypt and deploying all that to a virtual maschine.

    • @JamesMontemagno
      @JamesMontemagno  7 месяцев назад +1

      You can easily use YARP for reverse proxy - see github.com/dotnet/eshop

  • @komilp8310
    @komilp8310 19 дней назад

    Thank for this video. I am curious to understand how Aspire would work with micro-services that are in different solutions? To use Aspire, do all the related apps have to be under the same solution?

    • @JamesMontemagno
      @JamesMontemagno  18 дней назад

      Works great just reference them by path: learn.microsoft.com/en-us/dotnet/aspire/reference/aspire-faq#how-to-add-projects-to--net-aspire-

  • @timur2887
    @timur2887 6 месяцев назад

    Very informative, thank you!

  • @sacalbal
    @sacalbal 8 месяцев назад +2

    Great video.
    A question : In your example, does this mean you can use a postgre database from your backend after having configured .net aspire ? Then, how to use it from your backend ?

    • @solalem2001
      @solalem2001 8 месяцев назад

      Use the resource id ('db') in connection string. I think he missed .WithDatabase() part.

  • @shakes268
    @shakes268 Месяц назад +1

    A similar question I have with Aspire as I did with Dapr. Every example shows things in the same solution. Our services and front ends are all in different solutions and deployed separately. Are there any good resources for this?

    • @JamesMontemagno
      @JamesMontemagno  Месяц назад

      Just manually reference them learn.microsoft.com/en-us/dotnet/aspire/reference/aspire-faq#how-to-add-projects-to--net-aspire-

  • @kabal911
    @kabal911 5 месяцев назад

    That's amazing. Even just for local development as a first step for adoption 👍

  • @40fps143
    @40fps143 4 месяца назад

    what kind of visual studio is that ?? Looks cool i have always hated the square pointy tabs in the editor. How to get it ?

  • @paragraut3504
    @paragraut3504 9 месяцев назад +1

    Hey James, nice work. Would be great if you show the deployment process using .Net Aspire.

  • @davidmasterson883
    @davidmasterson883 5 месяцев назад

    Nice video, but the "Add Aspire to any App" title seems odd when maui is not supported. Any chance of you doing a video on where we are with maui aspire support. I appreciate that this is a "Cloud First" technology but 95% plus maui apps need a back end and I can see how this would be very useful.

  • @friedwishes
    @friedwishes 4 месяца назад +1

    What about a dotnet cli version?

    • @JamesMontemagno
      @JamesMontemagno  4 месяца назад

      You can create and configure via cli. Check documentation

  • @ashwinikumar13
    @ashwinikumar13 3 месяца назад +1

    Will it work on .Net Framework 4.7.2?

  • @amit141307
    @amit141307 9 месяцев назад

    Awesome James, Thanks!

  • @stevehiggin
    @stevehiggin 9 месяцев назад +1

    Watching a video with Fowler and Edwards they say Aspire is for the local development environment only and you dont deploy anything. But you modified your two existing projects with AddServiceDefaults so now you do need to deploy the project that provides that into say production and what happens if all the ServiceDefaults are not valid for production?

    • @davidfowl
      @davidfowl 9 месяцев назад +4

      The apphost project is not deployed. Service defaults are used by your applications and are deployed.

  • @appomobi
    @appomobi 8 месяцев назад

    Awesome tech, awesome presentation with that zooming and nice tempo!
    How easily can we then deploy this to a self-hosted linux server?

  • @manusidler
    @manusidler 8 месяцев назад

    Great tutorial, thank you! How would you handle a scenario where Aspire is used for local development only? Do you still integrate the Aspire NuGet packages into your projects (eg. Aspire.Npgsql for Postgres)?

    • @davidfowl
      @davidfowl 8 месяцев назад

      Those packages depend solely on configuration. They are not for local development only.

  • @king-cog
    @king-cog 4 месяца назад +1

    I don't see where you added a js app

    • @JamesMontemagno
      @JamesMontemagno  4 месяца назад

      Here ya go learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-nodejs

  • @allied-data
    @allied-data 8 месяцев назад

    It's all very cool. But the missing piece is the deployment to the Cloud Platform, which was the last sentence in your presentation. I realize it is a preview, but frankly, it will remain a preview until that part is demonstrable.
    I am looking forward to your future video covering that.

    • @JamesMontemagno
      @JamesMontemagno  8 месяцев назад

      Lots of docs: learn.microsoft.com/en-us/dotnet/aspire/deployment/overview Have a video on the way as well. Many devs will only end up using aspire for development purposes if they already had deployment setup as well, which is totally valid

  • @AmirHosseinBagheri
    @AmirHosseinBagheri 8 месяцев назад

    Do you have any videos on monorepos?

  • @xBodro
    @xBodro 6 месяцев назад +2

    It's unfortunate that you have to add specific to aspire packages to your projects

    • @itsamonkey1
      @itsamonkey1 3 месяца назад

      How is this unfortunate and not 100% expected?

  • @tsooooooo
    @tsooooooo 5 месяцев назад +1

    They should have pushed Orleans more, it's really underrated

    • @JamesMontemagno
      @JamesMontemagno  5 месяцев назад

      They are pretty different but can be used together learn.microsoft.com/en-us/dotnet/aspire/frameworks/orleans?tabs=dotnet-cli

  • @Paul-uo9sv
    @Paul-uo9sv 7 месяцев назад

    How do we add user access/control for net Aspire for production environment?

    • @JamesMontemagno
      @JamesMontemagno  7 месяцев назад +1

      It’s just a .NET app so the same way as normal. Aspire just adds to your app. It isn’t a new app

  • @krishnankuppaswamy7553
    @krishnankuppaswamy7553 7 месяцев назад

    This is interesting ❤

  • @nerdydragon42
    @nerdydragon42 9 месяцев назад +1

    Is it possible to use this with Blazor WASM?

    • @JamesMontemagno
      @JamesMontemagno  9 месяцев назад +1

      Should be able to yeah

    • @nerdydragon42
      @nerdydragon42 9 месяцев назад +1

      @JamesMontemagno sorry meant WASM Standalone, not that new one

  • @olivier0003
    @olivier0003 8 месяцев назад

    What can I say ! You are the best :)

  • @grant_vine
    @grant_vine 9 месяцев назад

    Please look at an example with DAPR or any service that fails to start without a referenced service running yet (I.e. the database isn’t yet up). Or even just explain some mitigations for this scenario? Otherwise short and simple and informative video thanks

  • @thiagomatu
    @thiagomatu 8 месяцев назад

    Can this be used with React or other Javascript technology?

    • @JamesMontemagno
      @JamesMontemagno  8 месяцев назад

      Absolutely! check this out: learn.microsoft.com/en-us/dotnet/aspire/get-started/build-aspire-apps-with-nodejs

  • @jportugal100
    @jportugal100 6 месяцев назад

    How do you publish to use a custom azure vnet?!

  • @Erril_Ferndal
    @Erril_Ferndal 2 месяца назад

    👍👍👍👍

  • @CubiqleSystems
    @CubiqleSystems 8 месяцев назад

    How to deploy the Aspire app to Azure. Please do a video.

  • @dotnetdevni
    @dotnetdevni 9 месяцев назад

    we should do a collage of all of james hair styles and beards lol 😂

  • @R0ckyRocket
    @R0ckyRocket 9 месяцев назад

    How do you deploy it? Will it automatically deploy all the services?

    • @JamesMontemagno
      @JamesMontemagno  9 месяцев назад

      Will have a video soon but check the docs to show you deployments

  • @ozory
    @ozory 7 месяцев назад

    Amazing !!!

  • @cristovaomorgado
    @cristovaomorgado 9 месяцев назад

    AMAZING!

  • @ramasamynagappan7586
    @ramasamynagappan7586 9 месяцев назад

    But you didn't explain how to access those containers in backemd app.

    • @JamesMontemagno
      @JamesMontemagno  9 месяцев назад

      Each component is documented and I showed how to add the component via nuget. Will be in my next video

  • @drancerd
    @drancerd Месяц назад

    No i don't, there are more 'Dev Friendly' Frames, with Aspire i need to write a 150% of Code:
    50% of the project until i see that i don't have the tools needed, then delete all and start from 0 to 100%
    All others Frames out there Say: 'Build in a week or wekeend', .NET Say 'Build in 6 months, debug in other 3 months, deploy en 2 months and mantain a month, because
    .NET it's updated' (Do while Loop).
    Don't use Blazor! Even MS use that Framework. (Same with MAUI, Even has support for Bing Maps! 😂😂😂).
    It's a shame for MS

  • @Snickerv12
    @Snickerv12 Месяц назад

    such a beta thumbnail why the soy face?