8000 Setting `Environment.ExitCode = 1;` doesn't work · Issue #700 · dotnet-script/dotnet-script · GitHub
[go: up one dir, main page]

Skip to content
Setting Environment.ExitCode = 1; doesn't work #700
Closed
@adamfk

Description

@adamfk

I can set Environment.ExitCode properly, but it isn't respected when the script exits.

Here's a simple reproduction:
image

The below works though.

Environment.Exit(1);

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

      0