# Compiler Error ASPIRE008

<Badge text="Version introduced: 8.2.3" variant='note' size='large' class:list={'mb-1'} />

> The Aspire workload that this project depends on is now deprecated.

This error appears when a project uses a version of Aspire that relies on the SDK workload, which is now deprecated. The error guides you to migrate your project to a supported version of Aspire that uses the SDK approach instead of the workload.

## Example

The following AppHost project file uses the deprecated Aspire workload:

```xml title="C# project file"
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <IsAspireHost>true</IsAspireHost>
    <UserSecretsId>98048c9c-bf28-46ba-a98e-63767ee5e3a8</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Aspire.Hosting.AppHost" Version="8.2.2" />
  </ItemGroup>

</Project>
```

For more information on the Aspire SDK, see [Aspire SDK](https://learn.microsoft.com/dotnet/aspire/fundamentals/dotnet-aspire-sdk/).

## To correct this error

Follow the migration guide at [https://aka.ms/aspire/update-to-sdk](https://aka.ms/aspire/update-to-sdk) to upgrade your project to a supported version of Aspire that uses the SDK approach.

The migration typically involves:

1. Updating your AppHost project file to use the `Aspire.AppHost.Sdk`.
1. Removing references to the deprecated workload.
1. Updating package references to supported versions.

## Suppress the error

<Aside type="danger">
Suppressing this error isn't recommended, as it leaves your project depending on an unsupported version of Aspire.
</Aside>

If you need to temporarily suppress this error, add the following property to your project file:

```xml title="C# project file"
<PropertyGroup>
  <SuppressAspireWorkloadDeprecationError>true</SuppressAspireWorkloadDeprecationError>
</PropertyGroup>
```