Skip to content

giomartinsdev/run-dotnet-aspire-in-visual-studio-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Run .NET Aspire in Visual Studio Code

This repository demonstrates how to set up and run .NET Aspire applications using Visual Studio Code.

Prerequisites

Getting Started

  1. Install the .NET Aspire workload:

    dotnet workload update
    dotnet workload install aspire
  2. Create a new Aspire project:

    dotnet new aspire-starter -n MyAspireApp
    cd MyAspireApp
  3. Open in VS Code:

    code .
  4. Run in VS Code:

    • Press F5 to start debugging
    • Or use Ctrl+F5 to run without debugging
    • Choose API or Apphost to run
    • The Aspire dashboard will automatically open in your browser
    • Set breakpoints in your services for debugging

Project Structure

MyAspireApp/
├── MyAspireApp.AppHost/                    # Orchestration project
├── MyAspireApp.ApiService/                 # API service
├── MyAspireApp.Domain/                     # Domain  lib (Optional)
├── MyAspireApp.Application/                # Application lib (Optional)
├── MyAspireApp.Infrastructure/             # Infrastructure lib (Optional)

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors