Closed GrantByrn3 closed 1 week ago
Did you install the aspire templates?
https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/aspire-sdk-templates?pivots=dotnet-cli
@davidfowl Wow, I was being really dumb.
Didn't think that updating to dotnet 9 would require having to add the templates.
Makes sense in retrospective.
➜ dotnet new install Aspire.ProjectTemplates
The following template packages will be installed:
Aspire.ProjectTemplates
Installing the template package(s) will override the available template package(s).
The following template package(s) are already available:
Aspire.ProjectTemplates::8.2.2
To install the template package(s) anyway, apply '--force' option:
dotnet new install Aspire.ProjectTemplates --force
For details on the exit code, refer to https://aka.ms/templating-exit-codes#106
➜ dotnet new list aspire
These templates matched your input: 'aspire'
Template Name Short Name Language Tags
--------------------------------- ---------------------- -------- -------------------------------------------------------
.NET Aspire App Host aspire-apphost [C#] Common/.NET Aspire/Cloud
.NET Aspire Empty App aspire [C#] Common/.NET Aspire/Cloud/Web/Web API/API/Service
.NET Aspire Service Defaults aspire-servicedefaults [C#] Common/.NET Aspire/Cloud/Web/Web API/API/Service
.NET Aspire Starter App aspire-starter [C#] Common/.NET Aspire/Blazor/Web/Web API/API/Service/Cloud
.NET Aspire Test Project (MSTest) aspire-mstest [C#] Common/.NET Aspire/Cloud/Web/Web API/API/Service/Test
.NET Aspire Test Project (NUnit) aspire-nunit [C#] Common/.NET Aspire/Cloud/Web/Web API/API/Service/Test
.NET Aspire Test Project (xUnit) aspire-xunit [C#] Common/.NET Aspire/Cloud/Web/Web API/API/Service/Test
➜ Code mkdir aspire-test
➜ Code cd aspire-test
➜ aspire-test dotnet new aspire-starter -o test.apphost
The template ".NET Aspire Starter App" was created successfully.
This template contains technologies from parties other than Microsoft, see https://aka.ms/dotnet/aspire/8.0-third-party-notices for details.
Processing post-creation actions...
Restoring /home/grant/Code/aspire-test/test.apphost/test.apphost.sln:
Restore succeeded.
Restoring /home/grant/Code/aspire-test/test.apphost/test.apphost.AppHost/test.apphost.AppHost.csproj:
Restore succeeded.
Restoring /home/grant/Code/aspire-test/test.apphost/test.apphost.ServiceDefaults/test.apphost.ServiceDefaults.csproj:
Restore succeeded.
Restoring /home/grant/Code/aspire-test/test.apphost/test.apphost.ApiService/test.apphost.ApiService.csproj:
Restore succeeded.
Restoring /home/grant/Code/aspire-test/test.apphost/test.apphost.Web/test.apphost.Web.csproj:
Restore succeeded.
➜ aspire-test
The aspire templates are not part of the .NET sdk as yet
Is there an existing issue for this?
Describe the bug
Trying to add a new apphost to a new solution, but running into an error:
This is one Fedora Workspace 41.
Upgraded to .net 9 via the shell script here: https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual Using the command
./dotnet-install.sh --channel 9.0
I've installed it this way because I'm having trouble getting the latest version via the Fedora package manager. (A bit of that saga is described here: https://github.com/dotnet/aspire/issues/5205)Expected Behavior
It creates an apphost project for me.
Steps To Reproduce
Run the command
dotnet new aspire-apphost -o TSWCloud.NotificationService.AppHost
Exceptions (if any)
No response
.NET Version info
Output of
dotnet --info
Anything else?
No response