Aspire upgrade impossible

I've been developing using Aspire since the end of 2023 - I stuck with 8.0.0-preview.3.24105.21.

If I upgrade to  8.0.0-preview.4.24156.9, I get the following error:

Application orchestrator dependency check had an unexpected error System.InvalidOperationException: Command /usr/local/share/dotnet/packs/Aspire.Hosting.Orchestration.osx-arm64/8.0.0-preview.3.24105.21/tools/dcp info returned non-zero exit code 1
  at Aspire.Hosting.Dcp.DcpDependencyCheck.EnsureDcpDependenciesAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpDependencyCheck.cs:line 67.
 

If I upgrade to anything else (starting at 8.0.0-preview.5.24201.12):

4>Sdk.targets(38,5): Warning ASPIRE002 : MarketData.AppHost is an Aspire AppHost project but necessary dependencies aren't present. Are you missing an Aspire.Hosting PackageReference?

< tons of errors> 


"obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs" obj/Debug/net8.0/MarketData.AppHost.AssemblyInfo.cs /warnaserror+:NU1605,SYSLIB0011
4>Program.cs(7,37): Error CS0246 : The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?)
4>Program.cs(8,41): Error CS0246 : The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?)
4>Program.cs(9,38): Error CS0246 : The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?)
4>Program.cs(11,20): Error CS0246 : The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?)
4>Program.cs(17,20): Error CS0246 : The type or namespace name 'Projects' could not be found (are you missing a using directive or an assembly reference?)

If I try to move to 9 (9.0.0-preview.1.24113.3):

4>Program.cs(1,7): Error CS0246 : The type or namespace name 'Aspire' could not be found (are you missing a using directive or an assembly reference?)
4>Project.AppHost.GlobalUsings.g.cs(2,22): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)
4>Project.AppHost.GlobalUsings.g.cs(3,22): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)
4>Project_market.ProjectMetadata.g.cs(4,42): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)
4>Project_ApiService.ProjectMetadata.g.cs(4,46): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)
4>Project_Content.ProjectMetadata.g.cs(4,43): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)
4>Project_studio.ProjectMetadata.g.cs(4,42): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)
4>Project_UserService.ProjectMetadata.g.cs(4,47): Error CS0400 : The type or namespace name 'Aspire' could not be found in the global namespace (are you missing an assembly reference?)

0
1 comment

Hello,

Thank you for contacting Rider support.

Would you mind sharing additional information as described below?

  • Don't you encounter the same issues in Visual Studio?
  • Do you have .Net Aspire plugin installed in Rider?
  • A screencast that demonstrates the way you reproduce the issue having a working project;
  • It would be helpful if you could share a repro solution with us too, so that we can reproduce the issue and troubleshoot it.
  • Output of the `dotnet --info` command invoked from the terminal.
  • You can upload files to the Upload service and let me know upload ID.

Have a nice day!

0

Please sign in to leave a comment.