Documentation
¶
Index ¶
- type Cli
- func (cli *Cli) Build(ctx context.Context, project string, configuration string, output string) error
- func (cli *Cli) CheckInstalled(ctx context.Context) error
- func (cli *Cli) GetMsBuildProperty(ctx context.Context, project string, propertyName string) (string, error)
- func (cli *Cli) InitializeSecret(ctx context.Context, project string) error
- func (cli *Cli) InstallUrl() string
- func (cli *Cli) IsAspireHostProject(ctx context.Context, projectPath string) (bool, error)
- func (cli *Cli) Name() string
- func (cli *Cli) Publish(ctx context.Context, project string, configuration string, output string) error
- func (cli *Cli) PublishAppHostManifest(ctx context.Context, hostProject string, manifestPath string, dotnetEnv string) error
- func (cli *Cli) PublishContainer(ctx context.Context, ...) (int, error)
- func (cli *Cli) Restore(ctx context.Context, project string) error
- func (cli *Cli) SetSecrets(ctx context.Context, secrets map[string]string, project string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
func NewCli ¶
func NewCli(commandRunner exec.CommandRunner) *Cli
func (*Cli) GetMsBuildProperty ¶
func (cli *Cli) GetMsBuildProperty(ctx context.Context, project string, propertyName string) (string, error)
GetMsBuildProperty uses -getProperty to fetch a property after evaluation, without executing the build.
This only works for versions dotnet >= 8, MSBuild >= 17.8. On older tool versions, this will return an error.
func (*Cli) InitializeSecret ¶
func (*Cli) InstallUrl ¶
func (*Cli) IsAspireHostProject ¶
IsAspireHostProject returns true if the project at the given path has an MS Build Property named "IsAspireHost" which is set to true or has a ProjectCapability named "Aspire".
func (*Cli) PublishAppHostManifest ¶
func (*Cli) PublishContainer ¶
func (cli *Cli) PublishContainer( ctx context.Context, project, configuration, imageName, server, username, password string, ) (int, error)
PublishContainer runs a `dotnet publish“ with `/t:PublishContainer`to build and publish the container. It also gets port number by using `--getProperty:GeneratedContainerConfiguration`.
Click to show internal directories.
Click to hide internal directories.