When I run scriptcs I see the message: DEBUG: Found assembly in bin folder: ScriptCsModule.dll. But I dont see the message I output to the console when the module is initialised.
[Module("work", Autoload = true, Extensions = "csx")]
public class WorkModule : IModule
{
public void Initialize(IModuleConfiguration config)
{
Console.WriteLine("Hello, world");
config.LineProcessor<LineProcessor>();
}
}
public class LineProcessor : ILineProcessor
{
public bool ProcessLine(IFileParser parser, FileParserContext context, string line, bool isBeforeCode)
{
Console.WriteLine(line);
return false;
}
}
Thanks.