DEV Community

Cover image for 10-Day .Net Aspire Challenge: Day 1 — Introduction
Sukhpinder Singh
Sukhpinder Singh

Posted on • Originally published at Medium

10 1 1 2 1

10-Day .Net Aspire Challenge: Day 1 — Introduction

Step-by-step guide on how to use the .Net Aspire framework in Visual Studio.

Introduction

.Net Aspire framework is used to develop cloud and production-ready distributed applications. It consists of components to handle cloud-native concerns such as Redis, Postgres etc.

Prerequisites

Objectives

  • Learn how to create a starter project using .Net Aspire templates.

Getting Started

Step 1: Open Visual Studio

Open Visual Studio, and then select “.Net Aspire Starter App” as shown below

Step 2: Provide the project name

Provide the project name and project directory.

Step 3: Select Frameworks

The next step is to select the applicable frameworks, and check “Configure for https”.

Note: **Select “Use Redis for caching**” only if the docker container is up and running.

and finally, click the “Create” button at the bottom.

Step 4: Understand the Solution Structure

The solution consists of 4 different projects as follows [If a test project is selected then an additional test project will be available]

  • DotnetAspireChallenge.ApiService: An ASP.Net Web API project is used to provide data for the web application.

  • DotnetAspireChallenge.AppHost: An orchestrator project to connect and configure multiple projects and services.

  • DotnetAspireChallenge.ServiceDefaults: A shared configuration manager for all of your projects and services.

  • DotnetAspireChallenge.Web: A blazer web application that connects with “DotnetAspireChallenge.ApiService” to fetch data.

Step 5: Run the project

Set “DotnetAspireChallenge.AppHost” as the startup project and run the project as shown below.

Image description

Congratulations..!! You’ve created your first .Net Aspire project.

Github Project

GitHub - ssukhpinder/DotnetAspireChallenge: 10 Day .Net Aspire Challenge

More Cheatsheets

Cheat Sheets — .Net

C# Programming🚀

Thank you for being a part of the C# community! Before you leave:

Follow us: Youtube | X | LinkedIn | Dev.to
Visit our other platforms: GitHub
More content at C# Programming

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay