From 2df391ffaad47ac23e7ec5273093c8d7a838e8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Tue, 9 Jan 2024 11:01:50 -0800 Subject: [PATCH] Add steps to use local package source (#1605) --- docs/contributing.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/contributing.md b/docs/contributing.md index 7b630a55a8..ec88e2608c 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -50,6 +50,24 @@ until `OnInitialized`. Please check the [.NET Aspire components contribution guidelines](../src/Components/README.md) if you intend to make contributions to a new or existing .NET Aspire component. +## Generating local NuGet packages + +If you want to try local changes on a separate Aspire based project or solution it can be useful to generate the NuGet packages +in a local folder and use it as a package source. + +To do so simply execute: +`.\build.cmd -pack` (Windows) or `.\build.sh -pack` (macOS and Linux) + +This will generate all the packages in the folder `./artifacts/packages/Debug/Shipping`. At this point from your solution folder run: + +`dotnet nuget add source my_aspire_folder/artifacts/packages/Debug/Shipping` + +Or edit the `NuGet.config` file and add this line to the `` list: + +```xml + +``` + ## Tips and known issues Make sure you have started Docker before trying to run an Aspire app.