From 8413882300e42799b90e3492796c3df569ac61c8 Mon Sep 17 00:00:00 2001 From: Samson Amaugo Date: Wed, 21 Aug 2024 14:54:02 +0100 Subject: [PATCH] Update custom-component.md I added a reference to `ServiceDefaults` which was missing --- docs/extensibility/custom-component.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/extensibility/custom-component.md b/docs/extensibility/custom-component.md index b66ea0ef2d..0958f5cfe6 100644 --- a/docs/extensibility/custom-component.md +++ b/docs/extensibility/custom-component.md @@ -155,6 +155,12 @@ With the component library created, you can now update the Newsletter service to dotnet add ./MailDevResource.NewsletterService/MailDevResource.NewsletterService.csproj reference MailKit.Client/MailKit.Client.csproj ``` +Next, add a reference to the `ServiceDefaults` project: + +```dotnetcli +dotnet add ./MailDevResource.NewsletterService/MailDevResource.NewsletterService.csproj reference MailDevResource.ServiceDefaults/MailDevResource.ServiceDefaults.csproj +``` + The final step is to replace the existing _:::no-loc text="Program.cs":::_ file in the `MailDevResource.NewsletterService` project with the following C# code: :::code source="snippets/MailDevResourceAndComponent/MailDevResource.NewsletterService/Program.cs":::