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:
IResourceContainerImageBuilder- Interface for building container imagesContainerBuildOptions- Options for configuring container buildsContainerImageFormat- Enumeration for specifying image formatContainerTargetPlatform- Type for specifying target platformContainerTargetPlatformExtensions- Extension methods for platform configuration- Docker and Podman container runtime implementations
- Related extension methods and implementations
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.