Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDeveloperCertificateTrust

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEnvironment) WithDeveloperCertificateTrust(trust bool) ResourceWithEnvironment

Signature

methodWithDeveloperCertificateTrustbuilder
Indicates whether developer certificates should be treated as trusted certificate authorities for the resource at run time. Currently this indicates trust for the ASP.NET Core developer certificate. The developer certificate will only be trusted when running in local development scenarios; in publish mode resources will use their default certificate trust.
WithDeveloperCertificateTrust(trust bool) ResourceWithEnvironment
trustboolIndicates whether the developer certificate should be treated as trusted.
ResourceWithEnvironment

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: