Dotnet Aspire does not work after conversion to paket
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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