Skip to content
Docs Try Aspire
Docs Try

withModDownload

Method
📦 Aspire.Hosting.Go v13.4.0-preview.1.26281.18
interface GoAppResource {
// ... omitted for brevity
withModDownload(): GoAppResource;
}

Signature

method withModDownload builder
Runs `go mod download` before starting the application, pre-fetching all module dependencies into the local module cache without modifying `go.sum`. The main application waits for the download step to complete successfully before launching.
withModDownload(): GoAppResource
GoAppResource

Applies to

This method applies to the following types: