Skip to content

Commit

Permalink
Update custom-component.md
Browse files Browse the repository at this point in the history
I added a reference to `ServiceDefaults` which was missing
  • Loading branch information
sammychinedu2ky committed Aug 21, 2024
1 parent a4bce98 commit 8413882
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/extensibility/custom-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -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":::
Expand Down

0 comments on commit 8413882

Please sign in to comment.