Skip to content

Add support for dotnet run project metadata #1383

Open
@JamieMagee

Description

@JamieMagee

The .NET team is proposing a new dotnet run file.cs command, which allows running single C# files, without a backing project. As part of that, NuGet dependencies can be specified as comments. For example:

#:sdk Microsoft.NET.Sdk.Web
#:property TargetFramework net11.0
#:property LangVersion preview
#:package System.CommandLine 2.0.0-*

Component Detection should be able to detect and register these dependencies.

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions