Compiler Error ASPIRE013
Este conteúdo não está disponível em sua língua ainda.
‘[ProjectName]’ requires the Aspire CLI bundle. Remove AspireUseCliBundle or set it to true, and install the matching Aspire CLI from https://get.aspire.dev. ASPIRE013 cannot be suppressed to disable the bundle. See https://aka.ms/aspire/diagnostics/aspire013 for more information.
This diagnostic error is reported when a C# AppHost project has AspireUseCliBundle set to anything other than true. The CLI bundle is required for C# AppHosts. Adding ASPIRE013 (or ASPIRE010) to NoWarn doesn’t bypass the requirement.
Non-C# AppHosts that opt out of the bundle report the suppressible warning ASPIRE010 instead. The two diagnostics are mutually exclusive.
Example
Section titled “Example”The following configuration produces ASPIRE013:
<PropertyGroup> <AspireUseCliBundle>false</AspireUseCliBundle></PropertyGroup>To correct this error
Section titled “To correct this error”Remove the AspireUseCliBundle property, or set it to true, and install the matching Aspire CLI from get.aspire.dev:
<PropertyGroup> <AspireUseCliBundle>true</AspireUseCliBundle></PropertyGroup>For more information, see Use the Aspire CLI bundle for orchestration dependencies.