Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Dotnet Aspire does not work after conversion to paket

Open landy opened this issue 1 year ago • 1 comments

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.

landy avatar Jan 07 '25 14:01 landy

https://github.com/dotnet/aspire/issues/6921 I mentioned this in the Aspire project, too.

colinbobolin avatar Jan 20 '25 18:01 colinbobolin