[C#] Enable loading additional script files into my function #221

Closed
fabiocav opened this Issue Apr 5, 2016 · 3 comments

Projects

None yet

2 participants

@fabiocav
Member
fabiocav commented Apr 5, 2016

Enable loading additional .csx script files into my function, bringing that code into the same compilation context.

This would leverage the #load directive and allow users to load files deployed in the same directory as their function script using the following syntax:

#load "MyOtherFile.csx"

Additional details/ideas

  • Once this is added, shared script files (located in a folder outside of the script folder) would also be supported, using standard path syntax (e.g. #load "..\shared\MyOtherFile.csx") . Should we make that a first class concept? Support a different syntax for shared file references?
@fabiocav fabiocav changed the title from [C#] Enable loading additional script files as into my function to [C#] Enable loading additional script files into my function Apr 5, 2016
@fabiocav fabiocav self-assigned this Apr 5, 2016
@davidebbo
Contributor

Is #load some new concept you created, or part of .csx syntax?

@davidebbo
Contributor

Ok, I read through https://msdn.microsoft.com/en-us/magazine/mt614271.aspx and I see it's part of .csx.

@fabiocav
Member
fabiocav commented Apr 5, 2016

Yes, this is part os the C# Script/csx syntax. Used by C# Interactive and other projects that use the same format.

@fabiocav fabiocav closed this Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment