Learn C# with CSharpFritz: Basics of .NET Aspire - Part 1

5,150
0
2024-05-15に共有
Let's learn the basics of .NET Aspire by building a simple blog website. We'll introduce a blog application that reads from markdown files on disk and start migrating it to use .NET Aspire and its cloud stack features

Links: github.com/csharpfritz/BigBadBlog

Featuring: Jeff Fritz (@csharpfritz)

#csharp #aspire #cloudNative

コメント (8)
  • @Nslindtner
    Impressive .. I am so happy, i haven't spend time looking into this before. This has been 2 inspiring hours. Loved it. Thank you. Looking forward to db part.
  • Aspire looks pretty good, and I'm excited to see where it goes. Your example is excellent if everything is in one solution, but we all know that's not how we develop. What I'd like to know is how to wire up Aspire when your frontend projects and APIs are in separate solutions.
  • took me some time to implement and configure opentelemetry, redis output cache and their respective dashboards with docker-compose. aspire is on another level at orchestration, it takes little or no time to do all these things.
  • @gt5193
    This is a bit of a long comment but hopefully I can get some clarity. Looking to move to .Net Aspire simply because of how it abstracts away configuration. My question is how do we handle environment configuration such as stage, uat & prod? Does .Net Aspire still need config files for each environment or can it just handle those changes. Thanks!
  • You are modifying the Web project by adding aspire nuget packages (for example the stackexchange redis package) and by adding new code lines into the Program.cs. But these changes are only for local dev machine. In a real world example, do you commit those lines and added packages? Even if you would add the code in an if Environment.IsDevelopment branch, you will still end up deploying the aspire packages as application artefacts (bin folder), right?
  • Are you wearing those glasses so that you are not exposed to blue light and have a better sleep at night?