Skip to content
Docs Try Aspire

Compiler Warning ASPIREEXTENSION001

Version introduced: 13.2

Extension debugging support APIs are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed.

This diagnostic warning is reported when using experimental extension debugging support APIs in Aspire, including:

  • WithDebugSupport<T, TLaunchConfiguration> extension method
  • SupportsDebuggingAnnotation

These APIs are primarily used by integration authors to enable F5 debugging for custom resource types in Visual Studio and other IDEs.

The following code generates ASPIREEXTENSION001:

C# — AppHost.cs
var builder = DistributedApplication.CreateBuilder(args);
builder.AddMyResource("resource")
.WithDebugSupport(
processId => new MyLaunchConfiguration { ProcessId = processId },
"myResourceType");

Suppress the warning with either of the following methods:

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

    .editorconfig
    [*.{cs,vb}]
    dotnet_diagnostic.ASPIREEXTENSION001.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);ASPIREEXTENSION001</NoWarn>
    </PropertyGroup>