Namespace aliasing causes an exception to be thrown · Issue #826 · scriptcs/scriptcs · GitHub
Skip to content

Namespace aliasing causes an exception to be thrown #826

Description

@bchavez

Hi there,

By default, System.IO namespace is added to every script.

Problem is I have an assembly that defines Fluent.IO.Path that conflicts with System.IO.Path.

So, I'd need to write something like this:

using Path=Fluent.IO.Path;

However, when I try to run my script, I get the following error:
"error CS0246: The type or namespace name 'Path' could not be found (are you missing a using directive or an assembly reference?)"

Any help would be great.

Running scriptcs in debug mode, I can confirm the assembly is being found and loaded.

Thank you,
Brian

https://groups.google.com/forum/m/?fromgroups#!topic/scriptcs/7YiOeeGgaZw

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions