|
| 1 | +--- |
| 2 | +title: Compiler Error ASPIREPIPELINES002 |
| 3 | +description: Learn more about compiler Error ASPIREPIPELINES002. Deployment state manager APIs are for evaluation purposes only and are subject to change or removal in future updates. |
| 4 | +ms.date: 10/28/2025 |
| 5 | +f1_keywords: |
| 6 | + - "ASPIREPIPELINES002" |
| 7 | +helpviewer_keywords: |
| 8 | + - "ASPIREPIPELINES002" |
| 9 | +ai-usage: ai-generated |
| 10 | +--- |
| 11 | + |
| 12 | +# Compiler Error ASPIREPIPELINES002 |
| 13 | + |
| 14 | +**Version introduced:** 13.0 |
| 15 | + |
| 16 | +> Deployment state manager APIs are for evaluation purposes only and are subject to change or removal in future updates. Suppress this diagnostic to proceed. |
| 17 | +
|
| 18 | +Aspire introduced deployment state manager APIs as part of the pipeline infrastructure starting in version 13.0. These APIs enable you to manage and persist deployment state information across pipeline executions. The deployment state manager provides functionality for storing, retrieving, and clearing deployment artifacts and metadata, which is essential for incremental deployments and tracking deployment history. |
| 19 | + |
| 20 | +Deployment state manager APIs are considered experimental and are expected to change in future updates. |
| 21 | + |
| 22 | +## APIs affected |
| 23 | + |
| 24 | +This diagnostic applies to the following deployment state manager APIs: |
| 25 | + |
| 26 | +- `IDeploymentStateManager` - Interface for managing deployment state |
| 27 | +- Deployment state manager implementations |
| 28 | +- `Deploy` property in `PublishingOptions` |
| 29 | +- `ClearCache` property in `PublishingOptions` |
| 30 | +- `Step` property in `PublishingOptions` |
| 31 | +- `DeployingCallbackAnnotation` - Annotation for deploying callbacks |
| 32 | +- Azure provisioning context providers |
| 33 | +- Related extension methods and implementations |
| 34 | + |
| 35 | +## To correct this error |
| 36 | + |
| 37 | +Suppress the error with one of the following methods: |
| 38 | + |
| 39 | +- Set the severity of the rule in the _.editorconfig_ file. |
| 40 | + |
| 41 | + ```ini |
| 42 | + [*.{cs,vb}] |
| 43 | + dotnet_diagnostic.ASPIREPIPELINES002.severity = none |
| 44 | + ``` |
| 45 | + |
| 46 | + For more information about editor config files, see [Configuration files for code analysis rules](/dotnet/fundamentals/code-analysis/configuration-files). |
| 47 | + |
| 48 | +- Add the following `PropertyGroup` to your project file: |
| 49 | + |
| 50 | + ```xml |
| 51 | + <PropertyGroup> |
| 52 | + <NoWarn>$(NoWarn);ASPIREPIPELINES002</NoWarn> |
| 53 | + </PropertyGroup> |
| 54 | + ``` |
| 55 | + |
| 56 | +- Suppress in code with the `#pragma warning disable ASPIREPIPELINES002` directive. |
0 commit comments