コンテンツにスキップ

Compiler Error ASPIREPUBLISHERS001

このコンテンツはまだ日本語訳がありません。

Version introduced: 9.2

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.

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 = 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);ASPIREPUBLISHERS001</NoWarn>
    </PropertyGroup>
  • Suppress in code with the #pragma warning disable ASPIREPUBLISHERS001 directive.

質問 & 回答コラボレーションコミュニティディスカッション視聴