microsoft / microsoft/aspire

Add support for multiple TFMs `<TargetFrameworks>`

Open
#2,962 11 comments 5 reactions 0 assignees View on GitHub
area-app-model area-tooling blazor-wasm
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

Context:

Some templates (`fluentuiblazorwasm`, `fluentuiblazorserver`) use `` which causes following error:

```
Unable to run your project
Your project targets multiple frameworks. Specify which framework to run using '--framework'.
```

In Dashboard 2 endpoints appear, but apps are not started.

Screenshot 2024-03-17 at 20 10 12

Reducing TFMs to 1 does not help (and multiple endpoints are not removed from Dashboard):

```xml
net8.0
```

Not even switching to single TFM (singular) and nuking `bin/` and `obj/` folders:

```xml
net8.0
```

Templates:

`fluentuiblazorwasm`

```


3.6.0
3.6.0.24067
3.6.0.24067
3.6.0.24067


net6.0;net7.0
enable
enable
true











```

`fluentuiblazorserver`

```


3.6.0
3.6.0.24067
3.6.0.24067
3.6.0.24067


net6.0;net7.0
enable
enable
true



```

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.