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?)
Please sign in to leave a comment.
Hello,
Thank you for contacting Rider support.
Would you mind sharing additional information as described below?
Have a nice day!
Following up on this (again), I've created an empty aspire project in the latest version of Rider (2024.2) - the original project comes up with:
<PackageReference Include="Aspire.Hosting" Version="8.0.0-preview.3.24105.21" />
If I upgrade with Nuget:
<PackageReference Include="Aspire.Hosting" Version="8.1.0" />
The only code in the application is (as I am trying to go line by line)
Then I get the following runtime error:
Version: 8.0.304
Commit: 352dc5a01f
Workload version: 8.0.300-manifests.6b7f9d2a
MSBuild version: 17.10.4+10fbfbf2e
OS Name: Mac OS X
OS Version: 15.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.304/
There are no installed workloads to display.
Version: 8.0.8
Architecture: arm64
Commit: 08338fcaa5
6.0.407 [/usr/local/share/dotnet/sdk]
6.0.416 [/usr/local/share/dotnet/sdk]
6.0.417 [/usr/local/share/dotnet/sdk]
6.0.418 [/usr/local/share/dotnet/sdk]
6.0.419 [/usr/local/share/dotnet/sdk]
6.0.421 [/usr/local/share/dotnet/sdk]
7.0.202 [/usr/local/share/dotnet/sdk]
7.0.310 [/usr/local/share/dotnet/sdk]
7.0.311 [/usr/local/share/dotnet/sdk]
7.0.312 [/usr/local/share/dotnet/sdk]
7.0.313 [/usr/local/share/dotnet/sdk]
7.0.315 [/usr/local/share/dotnet/sdk]
8.0.100 [/usr/local/share/dotnet/sdk]
8.0.300 [/usr/local/share/dotnet/sdk]
8.0.304 [/usr/local/share/dotnet/sdk]
Microsoft.AspNetCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.24 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.26 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.27 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.29 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.14 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.15 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.18 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.24 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.25 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.26 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.27 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.29 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.15 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.18 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
None
Not set
Not found
https://aka.ms/dotnet/info
https://aka.ms/dotnet/download
Hello,
Thank you for contacting Rider support.
Unfortunately, I can't reproduce the issue. It is weird, that the preview version is used by default.
I suggest trying the following option:
Please let me know the outcome.
Have a nice day!