Compiler Error ASPIREPUBLISHERS001
Esta página aún no está disponible en tu idioma.
Publishers are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed.
Aspire introduced the concept of Publishers starting in version 9.2. Publishers play a pivotal role in the deployment process, enabling the transformation of your distributed app into deployable assets. This alleviates the intermediate step of producing the publishing manifest for tools to act on, instead empowering the developer to express their intent directly in C#.
Publishers are considered experimental and are expected to change in the future.
To correct this error
Section titled “To correct this error”Suppress the error with either of the following methods:
-
Set the severity of the rule in the .editorconfig file.
.editorconfig [*.{cs,vb}]dotnet_diagnostic.ASPIREPUBLISHERS001.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);ASPIREPUBLISHERS001</NoWarn></PropertyGroup> -
Suppress in code with the
#pragma warning disable ASPIREPUBLISHERS001directive.