Skip to content

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

@egvijayanand

Description

@egvijayanand

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.

<TargetFrameworks>$(TargetFrameworks);net11.0</TargetFrameworks>
<OutputType Condition="'$(TargetFramework)' != 'net11.0'">Exe</OutputType>

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-NetSDKArea-RunIssues relating to `dotnet run`untriagedRequest triage from a team member

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions