Skip to content

Updating Aspire to 13.0 breaking Integration Test project #5663

@gpkGTA

Description

@gpkGTA

Type of issue

Code doesn't work

Description

Following guidelines on https://learn.microsoft.com/en-us/dotnet/aspire/get-started/upgrade-to-aspire-13

  • Updated Apphost project to <Project Sdk="Aspire.AppHost.Sdk/13.0.0">
  • Removed <PackageVersion Include="Aspire.Hosting.AppHost" Version="13.0.0" /> from Directory.Packages.props
  • Removed <PackageReference Include="Aspire.Hosting.AppHost" /> from AppHost project
  • Project runs as expected

However, with integration test project

  • Project remains <Project Sdk="Microsoft.NET.Sdk">
  • Package reference <PackageReference Include="Aspire.Hosting.AppHost" /> formerly had version set in Directory.Packages.props
  • using Projects; namespace now does not exist
  • Project fails to build

All projects will build by reverting back to former approach

  • Reset Apphost project to <Project Sdk="Microsoft.NET.Sdk"> <Sdk Name="Aspire.AppHost.Sdk" Version="13.0.0" />
  • Include <PackageVersion Include="Aspire.Hosting.AppHost" Version="13.0.0" /> in Directory.Packages.props

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/compatibility/13.0/

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/compatibility/13.0/index.md

Document Version Independent Id

875e0ba9-5bf7-4ecc-e97e-a83108e8b9ef

Platform Id

45b690ba-e6fd-aee1-9bbf-aa451372a74f

Article author

@IEvangelist

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions