dotnet / dotnet/sdk

.NET 11 Interactive Framework and Device Selection is nice, but remove any TFM where the OutputType isn't set to Exe.

Open
#52,982 2 comments 0 reactions 0 assignees View on GitHub
Area-NetSDK Area-Run untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Is your feature request related to a problem? Please describe.
.NET 11 Interactive Framework and Device Selection is nice, but remove any TFM where the OutputType isn’t set to Exe.

For testing purposes, we usually include the base framework target in the multi-targeted project, but it’s also appearing as one of the target options in the Spectre console. Filter it out.

```xml
$(TargetFrameworks);net11.0
Exe
```

### Describe the solution you'd like
Look for the OutputType node and filter out the TFM which isn't valid for dotnet run.

### Additional context
Multi-targeted projects like .NET MAUI

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.