CSharpRepl icon indicating copy to clipboard operation
CSharpRepl copied to clipboard

#load used in provided .csx cannot find file

Open kindermannhubert opened this issue 3 years ago • 0 comments

Version

last

What happened?

Having a.csx with

#load "b.csx"

and arbitrary b.csx within same location as a.csx.

Running csharprepl a.csx causes

error CS1504: Source file 'b.csx' could not be opened -- Could not find file.

during evaluation.

It does not matter whether:

  • a.csx is provided with a relative or absolute path.
  • Current directory is set to a location of a.csx or not.

Running a.csx with csi locates b.csx correctly (regardless of current directory).

kindermannhubert avatar May 24 '22 18:05 kindermannhubert