Skip to content

[Breaking change]: WithCommand obsolete, call WithCommand overload that accepts CommandOptions instead #2888

@DamianEdwards

Description

@DamianEdwards

Description

We obsoleted the WithCommand overload that takes lots of optional parameters and introduced a new overload that accepts an instance of CommandOptions.

Version

.NET Aspire 9.2

Previous behavior

The WithCommand method was not marked obsolete.

New behavior

The existing WithCommand overload is now obsolete. The new overload that accepts CommandOptions should be used instead.

Type of breaking change

  • Binary incompatible: Existing binaries might encounter a breaking change in behavior, such as failure to load or execute, and if so, require recompilation.
  • Source incompatible: When recompiled using the new SDK or component or to target the new runtime, existing source code might require source changes to compile successfully.
  • Behavioral change: Existing binaries might behave differently at run time.

Reason for change

API review.

Recommended action

Use the new overload.

Affected APIs

No response

Metadata

Metadata

Assignees

Labels

Pri1High priority, do before Pri2 and Pri3area-docsdoc-ideaIndicates issues that are suggestions for new topics [org][type][category]in-pr⛓️‍💥 breaking-changeIssues or PRs tracking breaking changes.

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions