microsoft / microsoft/aspire.dev
Improve Custom Resource Tutorial
Open
@IEvangelist is already working on this.
Since Jun 2, 2026.
- Dominant language
- MDX
- Stars
- 193
- Forks
- 87
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 73
Description
https://aspire.dev/integrations/custom-integrations/hosting-integrations/
Secure Networkingsection should be updated for theWithHttpsConfigurationapis.- Add a healthcheck (http://localhost:1080/healthz)
- Document how to test the integration with
DistributedApplicationTestingBuilder.
There is a gtocha to be aware of when creating the test project:
- For tests, you'll likely want to use
DistributedApplicationTestingBuilder.Create()rather thanDistributedApplicationTestingBuilder.Create<T>. This requires you to configure your test project to use the aspire sdk
This however introduces a few complications<Project Sdk="Aspire.AppHost.Sdk/13.1.0">- You'll need to specify
IsAspireProjectResourceon theProjectReferenceto your integration project. aspire updatewill get confused in the future when you try to update packages. https://github.com/dotnet/aspire/issues/12053,
- You'll need to specify
For the test, a simple check making sure the resoruce goes healthy should suffice - something like https://github.com/afscrome/aspire-inmemorywebserver-resource/blob/0ed1e4845d89b9080291c8f66bf2780d2f48d9c3/test/HostingIntegration/WaitingTests.cs#L5-L22
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.