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

Commit

Permalink
Merge pull request #277 from thoemmi/IFileSystem-in-ScriptCs
Browse files Browse the repository at this point in the history
allow System.IO.Abstractions in ScriptCs
  • Loading branch information
Jérémie Bertrand committed Nov 21, 2015
2 parents 5d3946d + 4f24de2 commit 1450894
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Pretzel/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1450894

Please sign in to comment.