C#C
C#2w ago
Zess

Could not resolve SDK "Aspire.AppHost.Sdk".

Error:
2025-12-09 13:16:23.316 [error] (/home/shanto/repos/QuizApp/QuizApp.AppHost/QuizApp.AppHost.csproj): Could not resolve SDK "Aspire.AppHost.Sdk". Exactly one of the probing messages below indicates why we could not resolve the SDK. Investigate and resolve that message to correctly specify the SDK.
  SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" returned null.
  Unable to find package Aspire.AppHost.Sdk with version (= 10.0.0)
  - Found 16 version(s) in nuget.org [ Nearest version: 13.0.0 ]
2025-12-09 13:16:23.370 [error] Failed to load project '/home/shanto/repos/QuizApp/QuizApp.AppHost/QuizApp.AppHost.csproj'. One or more errors occurred. (The SDK 'Aspire.AppHost.Sdk/10.0.0' specified could not be found.  /home/shanto/repos/QuizApp/QuizApp.AppHost/QuizApp.AppHost.csproj)


sln file:
<Project Sdk="Microsoft.NET.Sdk">

  <Sdk Name="Aspire.AppHost.Sdk" Version="13.0.0" />

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <IsAspireHost>true</IsAspireHost>
    <UserSecretsId>13c734ce-437e-449d-9ec9-cd2304121bc7</UserSecretsId>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\QuizApp.ApiService\QuizApp.ApiService.csproj" />
    <ProjectReference Include="..\QuizApp.Web\QuizApp.Web.csproj" />
  </ItemGroup>

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

</Project>
Was this page helpful?