Skip to content

I cannot execute scripts using paths that traverse up directories on Linux. #787

@toras9000

Description

@toras9000

I’m running on Ubuntu, with .NET 10 and dotnet-script v2.0.0.
.NET was installed not via package manager, but using the dotnet-install script described in Microsoft’s documentation.

In this environment, when I try to run a script using a relative path that goes up to the parent directory, I encounter an error:

$ find .
.
./bbb
./aaa
./aaa/abc.csx

$ cd bbb

$ dotnet script ../aaa/abc.csx
Could not load file or assembly '/home/ubuntu/.cache/dotnet-script/tmp/work/bbb/../aaa/abc.csx/execution-cache/script.dll'. The system cannot find the file specified.

I don’t recall seeing this error in previous versions.
It may be due to my environment, but I will report the issue for now.

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