Skip to content

unix coreconsole fails in when run via PATH search #4581

Closed
@janvorli

Description

@janvorli

CoreConsole uses argv[0] to determine it's location, which causes problems when a coreconsole-based app is on the PATH and is run from shell.

Repro steps:

Create a simple C# app (just something that prints hello world will work, or use an existing test app)
Compile it assemble a coreconsole-based app so that you have a single-folder standalone application
Put that folder on the PATH environment variable
Attempt to run it from while in the directory containing the app => It should work
Change to another directory => It now fails with Could not get full path to current executable: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions