Watch Aspire live streams문서사용해 보기

Compiler Error ASPIREACAEXPRESS001

이 콘텐츠는 아직 번역되지 않았습니다.

Version introduced: 13.6

AsExpress is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.

The following code generates ASPIREACAEXPRESS001:

AppHost.cs
var builder = DistributedApplication.CreateBuilder(args);
var env = builder.AddAzureContainerAppEnvironment("aspire-env")
.AsExpress();

Suppress the error with either of the following methods:

  • Set the severity of the rule in the .editorconfig file.

    .editorconfig
    [*.{cs,vb}]
    dotnet_diagnostic.ASPIREACAEXPRESS001.severity = none

    For more information about editor config files, see Configuration files for code analysis rules.

  • Add the following PropertyGroup to your project file:

    C# project file
    <PropertyGroup>
    <NoWarn>$(NoWarn);ASPIREACAEXPRESS001</NoWarn>
    </PropertyGroup>
  • Suppress in code with the #pragma warning disable ASPIREACAEXPRESS001 directive.