Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

allow System.IO.Abstractions in ScriptCs #277

Merged
merged 1 commit into from
Nov 21, 2015

Conversation

thoemmi
Copy link
Contributor

@thoemmi thoemmi commented Nov 21, 2015

I tried to use IFileSystem in ScriptCs, but it couldn't find the type.

I added #r System.IO.Abstractions to the top of my script, but the script engine tried to load that assembly from the GAC instead of the local folder (I assume the engine has some special handling of files starting with System.).

Therefore I added IFileSystem to the preloaded types. With this change you can use IFileSystem in your ScriptCs plugins.

@laedit
Copy link
Member

laedit commented Nov 21, 2015

Thanks a lot for your implication, you are amazing! 😃
Does this fix the #278 or it is another issue?

laedit pushed a commit that referenced this pull request Nov 21, 2015
allow System.IO.Abstractions in ScriptCs
@laedit laedit merged commit 1450894 into Code52:master Nov 21, 2015
@thoemmi
Copy link
Contributor Author

thoemmi commented Nov 21, 2015

Thanks for merging 😀
Nope, #278 is unrelated.

@thoemmi thoemmi deleted the IFileSystem-in-ScriptCs branch November 21, 2015 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants