इसे छोड़कर कंटेंट पर जाएं

aspire update command

यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।

aspire update - Update Aspire packages and templates in your project.

Aspire CLI
aspire update [options]

The aspire update command helps you keep your Aspire projects current by automatically detecting and updating outdated packages and templates. It finds outdated Aspire NuGet packages while respecting channel configurations and intelligently handles complex dependency graphs.

The Aspire CLI uses the following logic, in order, to determine which AppHost project to process:

  • The --project option.

    This option specifies the path to a project to process.

  • The .aspire/settings.json config file.

    If the config file path exists in the current directory, it’s used. If not, the CLI walks up the directory structure looking for the config file. If it finds a config file, it reads the appHostPath setting value as the project to process.

  • Searches the current directory and subdirectories.

    Starting in the current directory, the CLI gathers all AppHost projects from that directory and below. If a single project is discovered, it’s automatically selected. If multiple projects are discovered, they’re printed to the terminal for the user to manually select one of the projects.

    Once a project is selected, either automatically or manually, the path to the project is stored in the .aspire/settings.json config file.

The command performs the following:

  • Detects outdated Aspire NuGet packages in your project
  • Respects your configured Aspire channel (preview, stable, etc.)
  • Resolves diamond dependencies to avoid duplicate updates
  • Validates package compatibility before applying changes
  • Provides colorized output with detailed summary of changes

The following options are available:

  • --project

    The path to the Aspire AppHost project file.

  • -?, -h, --help

    Prints help and usage documentation for the available commands and options.

  • -d, --debug

    Enable debug logging to the console, which prints detailed information about what .NET Aspire CLI is doing when a command is run.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

  • Analyze and update out-of-date Aspire packages and templates:

    Aspire CLI
    aspire update
  • Update a specific AppHost project:

    Aspire CLI
    aspire update --project './projects/apphost/orchestration.AppHost.csproj'
प्रश्न & उत्तरसहयोग करेंसमुदायचर्चादेखें