microsoft / microsoft/aspire

No AppHost.cs generated only when Angular exists

Open
#18,289 5 comments 0 reactions 0 assignees View on GitHub
area-integrations triage:bot-seen
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

repo: https://github.com/suugbut/aspire-no-apphost.cs

### Tools
- `aspire --version` : 13.4.5(trimmed)
- `dotnet --version` : 10.0.301
- `ng version` : 22.0.0
- `npm --version` : 11.16.0
- `node --version` : 24.16.0
- Operating System : Win32 x64 (Windows 10)

### How to reproduce?

- Clone my repo or create with the following `builder.sh`.
```sh
#!/bin/bash
set -e # stop at error
mkdir -p myfolder/src
cd myfolder/src
dotnet new web -n backend
ng new frontend \
--no-interactive \
--minimal \
--skip-git \
--skip-tests \
--defaults \
--routing=false \
--style=css
```
- Invoke `aspire init` from the root.
```sh
cd myfolder
aspire init
```

Image

Answer `C#` for language selection and `n` for AI.
Aspire only generates `aspire.config.json`:
```json
{
"appHost": {
"language": "csharp"
}
}
```
without `AppHost.cs`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.