From 4f24de258095850bf7a78d91bd7e09a9122564ac Mon Sep 17 00:00:00 2001 From: Thomas Freudenberg Date: Sat, 21 Nov 2015 00:55:36 +0100 Subject: [PATCH] allow System.IO.Abstractions in ScriptCs --- src/Pretzel/Program.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Pretzel/Program.cs b/src/Pretzel/Program.cs index 272410e03..1a47c061c 100644 --- a/src/Pretzel/Program.cs +++ b/src/Pretzel/Program.cs @@ -133,14 +133,15 @@ private void AddScriptCs(AggregateCatalog mainCatalog, string pluginsPath) var scriptCsCatalogMethod = factoryType.GetMethod("CreateScriptCsCatalog"); if (scriptCsCatalogMethod != null) { - var catalog = (ComposablePartCatalog)scriptCsCatalogMethod.Invoke(null, new object[] + var catalog = (ComposablePartCatalog)scriptCsCatalogMethod.Invoke(null, new object[] { pluginsPath, - new[] + new[] { typeof(DotLiquid.Tag), typeof(Logic.Extensibility.ITag), - typeof(Logic.Templating.Context.SiteContext) + typeof(Logic.Templating.Context.SiteContext), + typeof(IFileSystem), } }); mainCatalog.Catalogs.Add(catalog);