Compiler Error ASPIREPIPELINES003
यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
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.
APIs affected
Section titled “APIs affected”This diagnostic applies to the following container image build APIs:
IResourceContainerImageManager- Interface for building and pushing container imagesContainerImageBuildOptions- Options for building an individual container imageContainerBuildOptionsCallbackContext- Context for configuring resource image buildsContainerImageDestination- Enumeration for selecting a registry or archive destinationContainerImageFormat- Enumeration for specifying image formatContainerTargetPlatform- Type for specifying target platformWithContainerBuildOptionswithContainerBuildOptions- Extension methods for configuring compute resource builds- Related annotations, options, and extension methods
To correct this error
Section titled “To correct this error”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 = noneFor more information about editor config files, see Configuration files for code analysis rules.
-
Add the following
PropertyGroupto your project file:C# project file <PropertyGroup><NoWarn>$(NoWarn);ASPIREPIPELINES003</NoWarn></PropertyGroup> -
Suppress in code with the
#pragma warning disable ASPIREPIPELINES003directive.