跳转到内容

Compiler Error ASPIREPIPELINES003

此内容尚不支持你的语言。

Version introduced: 13.0

Container image build APIs are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed.

Aspire introduced container image build APIs as part of the pipeline infrastructure starting in version 13.0. These APIs provide functionality for building container images as part of the deployment pipeline. The container image build APIs enable you to configure build options, specify target platforms, select image formats, and integrate with container runtimes like Docker and Podman.

Container image build APIs are considered experimental and are expected to change in future updates.

This diagnostic applies to the following container image build APIs:

  • IResourceContainerImageBuilder - Interface for building container images
  • ContainerBuildOptions - Options for configuring container builds
  • ContainerImageFormat - Enumeration for specifying image format
  • ContainerTargetPlatform - Type for specifying target platform
  • ContainerTargetPlatformExtensions - Extension methods for platform configuration
  • Docker and Podman container runtime implementations
  • Related extension methods and implementations

Suppress the error with one of the following methods:

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

    .editorconfig
    [*.{cs,vb}]
    dotnet_diagnostic.ASPIREPIPELINES003.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);ASPIREPIPELINES003</NoWarn>
    </PropertyGroup>
  • Suppress in code with the #pragma warning disable ASPIREPIPELINES003 directive.

问 & 答协作社区讨论观看