Skip to content

add development dependencies to project.json #4688

@enricosada

Description

@enricosada

I think it should be awesome to have some place to define the build dependencies ( nuget packages with coreclr target ) of the project instead of only the package dependencies.

for example, i have a tool HelperStuff program who run on coreclr.

i can add this on package on a

    "build-dependencies": {
        "HelperStuff": "1.0.0"
    },

and i can run this program on postbuild, prebuild event.

Each package can use his version of the HelperStuff, no need to globally use a specific version.

It's usefull for

  • create custom documentation
  • generate or update some files
  • extend where possibile

This work it's done on the dotnet restore step.

This can be a shared option in global.json of repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions