Skip to content
Docs Try Aspire
Version introduced: 9.2.0

‘[ProjectName]’ project requires GenerateAssemblyInfo to be enabled. The Aspire AppHost relies on assembly metadata attributes to locate required dependencies.

This error appears when an Aspire AppHost project has GenerateAssemblyInfo set to false. The Aspire AppHost relies on AssemblyMetadataAttribute to embed DCP (Developer Control Plane) and Dashboard paths during compilation. When GenerateAssemblyInfo is disabled, these attributes aren’t generated, causing runtime failures about missing orchestration dependencies.

The following AppHost project file has GenerateAssemblyInfo disabled, which causes ASPIRE008:

C# project file
<Project Sdk="Aspire.AppHost.Sdk/13.1.0">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UserSecretsId>98048c9c-bf28-46ba-a98e-63767ee5e3a8</UserSecretsId>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
</Project>

Remove the <GenerateAssemblyInfo>false</GenerateAssemblyInfo> line from your project file, or set it to true:

C# project file
<Project Sdk="Aspire.AppHost.Sdk/13.1.0">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UserSecretsId>98048c9c-bf28-46ba-a98e-63767ee5e3a8</UserSecretsId>
</PropertyGroup>
</Project>

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

C# project file
<PropertyGroup>
<NoWarn>$(NoWarn);ASPIRE008</NoWarn>
</PropertyGroup>