Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Enhancement: Have a way to import all the script files in a directory. #7

Closed
DerekSMorin opened this issue Jul 30, 2016 · 1 comment

Comments

@DerekSMorin
Copy link

DerekSMorin commented Jul 30, 2016

Is there a way to import all script files in a directory?

I'd like to use a folder as a grouping mechanism for helper classes.

//css_dir ..\Shared;
//css_import BatchMethods;
//css_import BatchConstants;
//css_import SharedMethods;
...

It would be nice to be able to include all the files in "Shared"

From Oleg:

If you are hosting your script engine then it can be done very easy with dynamically composed includes script similarly to CS-Script "linq.includes.cs"

Though for stand alone script execution it's problematic.

I actually see this as a good (easy to implement) feature with syntax similar to this: //css_include *.cs

Derek:

That syntax looks good to me. It would be good to make sure it works with relative paths like:
//css_include ..\Shared*.cs

@oleg-shilo
Copy link
Owner

Done.
Please use "Release v3.13.3.0 - HotFixes" to test the feature

oleg-shilo pushed a commit that referenced this issue Aug 3, 2016
* Issue #7: Have a way to import all the script files in a directory (Support for //css_inc sub*.cs)
* Issue #6: CodeCom Evaluator gets slower after many LoadCode iterations (removed test code)
*Reinstated WPF support/sample
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants