fsprojects / fsprojects/Paket

Dotnet Aspire does not work after conversion to paket

Open
#4,282 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

Dotnet Aspire fails to start when Paket is used to manage packages for the AppHost project.

Repro steps

I created the default aspire template using the dotnet cli dotnet new aspire-starter and then ran the dotnet paket convert-from-nuget command. Now, the Aspire App Host fails to start with the error AspirePaket.AppHost is a .NET Aspire AppHost project that needs a package reference to Aspire.Hosting.AppHost version 8.2.0 or above to work correctly.
I create a repository where the behaviour can be observed https://github.com/landy/AspirePaket

Expected behaviour

AppHost should start as usual.

Actual behaviour

It fails to start with the error mentioned above.

Known workarounds

I don't know about any workarounds. I suspect this is caused by the <Sdk Name="Aspire.AppHost.Sdk" Version="9.0.0" /> element in the csproj, but I don't have any knowledge about the msbuild.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked AspirePaket repository and the AppHost project's .csproj; reproduce the failure after running dotnet paket convert-from-nuget. Inspect the Aspire.AppHost.Sdk element and the package-reference behavior, then verify that the converted AppHost starts as expected.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.