.Net Aspire needs additional components?
I have a solution that uses Aspire and works in Visual Studio 2022, but will not compile in Rider 2024.2.4. In order to debug the issue, I wanted to create a new Aspire solution for testing. I confirmed the Aspire workload was installed and updated the workloads:

I also confirmed the Aspire plugin is installed and enabled:

But when I go to create a new solution and choose Aspire, it tells me to install .NET Aspire, and also mentions that I need to install additional components, but doesn't tell me what they are:

So what do I need to do to get Aspire working in Rider?
D
Please sign in to leave a comment.
Hello Dean,
Thank you for contacting Rider support.
I verified Aspire on Ubuntu 22.04.4 and see it is working fine. It seems like Rider uses dotnet executable different from what you use from the terminal.
There are the following option:
Go to Rider settings: Settings | Build, Execution, Deployment | Toolset and Build and set .NET CLI executable path to the same as printed in the terminal;
Hope that helps. Have a nice day!
Hi Dmitry,
I followed the steps you posted and I saw in fact that Rider was using /usr/lib/dotnet/dotnet and the symlink from the command line points at /lib/dotnet/dotnet:
I updated Rider to use this dotnet instead of the one it had:
I closed everything, even the Toolbox app and relaunched it. I double-checked the settings to make sure it was using the right executable, and it was. I then chose to install .NET Aspire as you mentioned:
I confirmed it was using the correct executable as shown above, entered my password and it installed the workload, apparently. I say apparently because afterwards it still showed the Install .NET Aspire button and the warning that additional components need to be installed:
I then ran the command to install the workload manually:
This did nothing to help things. When I launched Rider and chose New Solution → Aspire, it still shows the Install .NET Aspire button and the warning that additional components need to be installed.
The workload is clearly installed, using the same .NET CLI executable that Rider is now using. Why can't it see it? Are there logs somewhere I can check to see why it thinks something is missing, and what that actually is?
/usr/bin/dotnet -> ../lib/dotnet/dotnet resolves into /usr/lib/dotnet/dotnet, but not to /lib/dotnet/dotnet
Please try setting .NET CLI executable path to /usr/lib/dotnet/dotnet in Rider settings.
If that doesn't help, please share the output of `which dotnet`, `dotnet workload list`. Ensure 'aspire' is listed in the output (*).
Then, try the following:
1. Create an empty solution;
2. Open Rider settings and set .NET CLI executable path to the same (*) dotnet. Save settings;
3. Right-click on solution in explorer and select Add | New Project | Aspire;
Please tell me whether is helps or not.
Regards, Dmitry.
Hi Dmitry,
I have no idea what you mean by that, but there is no /usr/lib/dotnet/dotnet on my system so I can't change Rider to use that.
Here is the outputs you requested:
I'm on Ubuntu 24.04.1, there is no such option when right-clicking the solution.
On Fedora 40, after installing dotnet 8.0.401 (mentioned here https://github.com/dotnet/aspire/issues/5486#issuecomment-2327680943) Rider let me create Aspire projects. You could try adding “https://packages.microsoft.com/ubuntu/24.04/prod/” to your repos and installing from there. At this point I still couldn't build however, since my dotnet did not include “dotnet msbuild.” I also tried “dotnet new aspire-starter --name MyProject” with dotnet 8.0.108 (Fedora repo's version), which created the project, but then wouldn't compile due to the generated projects referring to invalid Fedora nuget packages. So in the end, I don't have anything working on Fedora 40, but maybe it'll help for Ubuntu.
Hello Dean,
Thank you for the details shared.
I reproduced the same behavior with an older version of .NET SDK 8.0.108. I also noticed that while aspire workload is installed, I still couldn't create an aspire-starter project. Did you by chance install your dotnet via ‘sudo apt-get install dotnet-sdk-8.0’?
I found a solution in installing the latest .NET 8 8.0.8 SDK 8.0.401 from official .Net download page. After pointing Rider to this installation, I was able to install aspire workload (it worked out from both terminal and Rider just fine), create a project from Rider/terminal and finally build/run it from Rider.
Would you mind trying the same approach? You can get the latest .NET SDK from Microsoft .Net download page.
Have a nice day!
Have a nice day!
Dean Mills
After hours of searching, I fixed this issue by running the command below. (I'm using .net 9 and I was seeing the error/warning you are/were seeing).
Please note that the command told me that I had the templates already installed, and asked me to add the “--force” flag to force a reinstall. That was when the error went away.
I can confirm that running JetBrains Rider on a Mac (Apple M2), the fix described by @Robert Machinga above, was the one that solved the problem for me.
Robert Machinga , thank you for solution. I was struggling with this as well on Ubuntu 24.04.