Skip to content

Make build.ps1/sh scripts optional #1567

@maxkatz6

Description

@maxkatz6

Description

Build scripts are useful for a quick .NET SDK bootstrapping on an unknown environment.
But when running targets locally or on CI, where SDK is already installed, these scripts are unnecessary step in between and extra file in the repository.

Usage Example

Currently, nuke tool runs these build scripts, instead of running local dotnet directly.

This feature request can be implemented either as an optional env parameter to force nuke tool to call dotnet instead. Or drop dependency on these scripts entirely.

Alternative

build.ps1/sh scripts are already optional if you run dotnet project directly:

dotnet run --project build/_build.csproj -- Target

But if I try to run nuke Target - it will fail unless I agree on creation of these scripts.

Could you help with a pull-request?

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions