Aspirerelease/17.0
Watch Aspire live streamsDokumentasiCoba Aspire

Compiler Error ASPIRE013

Konten ini belum tersedia dalam bahasa Anda.

Version introduced: 17.0

‘[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.

The following configuration produces ASPIRE013:

MyApp.AppHost.csproj
<PropertyGroup>
<AspireUseCliBundle>false</AspireUseCliBundle>
</PropertyGroup>

Remove the AspireUseCliBundle property, or set it to true, and install the matching Aspire CLI from get.aspire.dev:

MyApp.AppHost.csproj
<PropertyGroup>
<AspireUseCliBundle>true</AspireUseCliBundle>
</PropertyGroup>

For more information, see Use the Aspire CLI bundle for orchestration dependencies.