Mac - New Aspire App Host cannot load .NET 9.0 SDK
With a new install of Mac OS, I install .NET 9 SDK for Arm64 (currently SDK 9.0.102).
Then I install latest version of Rider (currently JetBrains Rider 2024.3.5, Build #RD-243.24978.27, built on February 6, 2025).
Create a New Solution and choose Other > Aspire.
I need to Install Aspire, which I do and enter my user password.
Then I can create the solution and I'm shown the below.

Using Terminal, as root user, I run:
dotnet workload install aspire

Still, the same issue occurs.
If I load Rider as root user, it works fine:
sudo /Applications/Rider.app/Contents/MacOS/rider
And this finally can load the AppHost project (ROOT instance on right side of screenshot):

Clearly this is a permissions thing, whereby it can't access some file when in user mode, but I can't work it out. Any help is appreciated as it's annoying to always have to run the app as root.
Thanks!
Please sign in to leave a comment.
For anyone searching the same error, it's:
How do you install the SDK? Does the problem only occur when running an Aspire application?
Have a try to create a new Console App from CLI, then run it in the system terminal. Could you execute it without privileged permission?
So the solution was found in this answer: https://github.com/NuGet/Home/issues/12162#issuecomment-1282012786
I deleted these directories:
.nuget
.templatecache
They were owned by root and my user (even though it's an admin user) could not access them. Now, they can be accessed.
Not sure how or why I got into this state, but it was reproducible with a clean install of the OS (MacBook M1 Pro, so Arm64, if that matters), installing the .NET 9.0 SDK and then trying something like:
dotnet new console -o MyConsoleApp
or if you want to try Aspire:
dotnet new aspire-starter --use-redis-cache --output AspireSample
Rossmac That's valuable information. Could you share more details about your SDK installation? (Use brew/package/manual install)
Rider could help to install Aspire workload in the New Solution panel if it's not installed.
Do you remember if you can open solutions normally when the Aspire is not installed yet?