From d141a27a9508bfaf9cbff71efed0880c19b41292 Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Fri, 17 May 2024 11:40:21 -0700 Subject: [PATCH 1/3] Fix typos in Update custom-resources.md Fixes some minor issues in the custom resources doc observed while watching https://www.youtube.com/watch?v=4rVrR9haWlg --- docs/extensibility/custom-resources.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/extensibility/custom-resources.md b/docs/extensibility/custom-resources.md index 89a74e12e0..5f232d51c3 100644 --- a/docs/extensibility/custom-resources.md +++ b/docs/extensibility/custom-resources.md @@ -106,7 +106,7 @@ Press Ctrl+C to shutdown the app (you can close the browse 1. Add `Aspire.Hosting` to the class library as a package reference. ```dotnetcli - dotnet add ./MailDev.Hosting\MailDev.Hosting.csproj package Aspire.Hosting --version 8.0.0 + dotnet add ./MailDev.Hosting/MailDev.Hosting.csproj package Aspire.Hosting --version 8.0.0-preview.7.24251.11 ``` 1. Add class library reference to the _MailDevResource.AppHost_ project. @@ -467,7 +467,7 @@ public static IResourceBuilder AddMailDev( } ``` -Careful consideration should be given as to whether the resource should be present in the manifest, or whether it should be suppressed. If the resource is being added to the manifest it should be configured in such a way that it 's safe and secure to use. +Careful consideration should be given as to whether the resource should be present in the manifest, or whether it should be suppressed. If the resource is being added to the manifest it should be configured in such a way that it's safe and secure to use. ## Summary From 17afc448be1b0e54e3a10dda51b46cf7dea923a3 Mon Sep 17 00:00:00 2001 From: Damian Edwards Date: Fri, 17 May 2024 11:51:58 -0700 Subject: [PATCH 2/3] Fix another backslash --- docs/extensibility/custom-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/extensibility/custom-resources.md b/docs/extensibility/custom-resources.md index 5f232d51c3..1c6111dcf7 100644 --- a/docs/extensibility/custom-resources.md +++ b/docs/extensibility/custom-resources.md @@ -238,7 +238,7 @@ In order to test the end-to-end scenario, you need a .NET project which we can i 1. Add a referece to the _MailDevResource.AppHost_ project. ```dotnetcli - dotnet add ./MailDevResource.AppHost/MailDevResource.AppHost.csproj reference ./MailDevResource.NewsletterService\MailDevResource.NewsletterService.csproj + dotnet add ./MailDevResource.AppHost/MailDevResource.AppHost.csproj reference ./MailDevResource.NewsletterService/MailDevResource.NewsletterService.csproj ``` 1. Add the new project to the solution file. From e16f9b7f8cd82886c64099695ffeed77b6effcfc Mon Sep 17 00:00:00 2001 From: David Pine Date: Fri, 17 May 2024 14:54:25 -0500 Subject: [PATCH 3/3] Update custom-resources.md --- docs/extensibility/custom-resources.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/extensibility/custom-resources.md b/docs/extensibility/custom-resources.md index 1c6111dcf7..582e6cf5e9 100644 --- a/docs/extensibility/custom-resources.md +++ b/docs/extensibility/custom-resources.md @@ -109,6 +109,9 @@ Press Ctrl+C to shutdown the app (you can close the browse dotnet add ./MailDev.Hosting/MailDev.Hosting.csproj package Aspire.Hosting --version 8.0.0-preview.7.24251.11 ``` + > [!IMPORTANT] + > The version you specify here should match the version of the .NET Aspire workload installed. + 1. Add class library reference to the _MailDevResource.AppHost_ project. ```dotnetcli @@ -212,9 +215,9 @@ _The MailDev web app should look similar to the following:_ Once .NET Aspire can successfully launch the MailDev component, it's time to consume the connection information for MailDev within a .NET project. In .NET Aspire it's common for there to be a _hosting package_ and one or more _component packages_. For example consider: -- **Hosting package**: +- **Hosting package**: Used to represent resources within the app model. - `Aspire.Hosting.Redis` -- **Component packages**: +- **Component packages**: Used to configure and consume client libraries. - `Aspire.StackExchange.Redis` - `Aspire.StackExchange.Redis.DistributedCaching` - `Aspire.StackExchange.Redis.OutputCaching`