add-aspire-dep

Add infrastructure dependencies to .NET Aspire applications by modifying project files and resource definitions.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill add-aspire-dep-emmanuelkwaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-aspire-dep
Source: https://github.com/Emmanuelkwaa/NetRockTemplate/tree/main/.claude/skills/add-aspire-dep
Command: npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill add-aspire-dep-emmanuelkwaa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of adding new infrastructure dependencies to an .NET Aspire application, streamlining the setup of microservices and external resources.

Core Features & Use Cases

  • Dependency Addition: Adds necessary NuGet packages and resource definitions for various infrastructure components (e.g., databases, message queues).
  • Configuration Management: Updates project files and configuration settings to correctly integrate the new dependency.
  • Use Case: You need to add a RabbitMQ service to your .NET Aspire application. This Skill will handle all the necessary code and configuration changes to make it happen.

Quick Start

Use the add-aspire-dep skill to add a RabbitMQ dependency to the project.

Frequently Asked Questions about add-aspire-dep

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add infrastructure dependencies to a .NET Aspire application?

To add infrastructure dependencies to a .NET Aspire application, you modify project files and resource definitions. This involves updating Directory.Packages.props, .csproj files, Program.cs resource definitions, and appsettings.json to integrate services like databases and message queues.

What files need to be updated to integrate a RabbitMQ service into .NET Aspire?

Integrating a RabbitMQ service into .NET Aspire requires updating multiple configuration files. The process modifies Directory.Packages.props for NuGet packages, .csproj files, Program.cs resource definitions, and appsettings.json for standalone defaults.

Does adding a microservice dependency in .NET Aspire require updating appsettings.json?

Yes, adding a microservice dependency in .NET Aspire requires updating appsettings.json. This file is specifically modified to configure standalone defaults alongside updates to .csproj files and Program.cs resource definitions for the new infrastructure component.

Can I use this approach to add databases and message queues to my .NET Aspire AppHost?

Yes, you can use this approach to add databases and message queues to your .NET Aspire AppHost. The process facilitates the integration of various infrastructure components by automatically adding the necessary NuGet packages and resource definitions.

What is the best way to manage NuGet packages when adding infrastructure to .NET Aspire?

The best way to manage NuGet packages when adding infrastructure to .NET Aspire is by updating the Directory.Packages.props file. This centralizes package management alongside required modifications to .csproj files and Program.cs resource definitions.

Why does adding infrastructure to .NET Aspire require modifying multiple project files?

Adding infrastructure to .NET Aspire requires modifying multiple project files because the framework needs coordinated updates across Directory.Packages.props, .csproj files, and Program.cs to correctly wire NuGet packages, resource definitions, and appsettings.json configurations together.