Skip to content

Nested references inside #load inside a .csx file don't resolve #514

Description

@JustArion

Version

C# REPL 0.9.2+02f5a08f2cb92adf05414cb4a8b0f0c71c012108

What happened?

This is a continuance from the discussion page

I'm currently unable to reference a nuget package via the #load feature when loading a .csx file.

> Vanara.profile.csx

#r "nuget: Vanara.PInvoke.Kernel32"

using Vanara.PInvoke;
using static Vanara.PInvoke.Kernel32;

"Loaded

When doing #load Vanara.profile.csx I get the following error:

Vanara.profile.csx(3,7): error CS0246: The type or namespace name 'Vanara' could not be found (are you missing a using directive or an assembly reference?)

But no error if I copy paste the entirety of the .csx file into csharprepl.

Unsure if its entirely related to the issue highlighted in #355, but the fix in #498 didn't seem to help this issue since we're on v0.9.2 which is from an update a few weeks ago while the PR was merged from a month ago.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions