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

allow System.IO.Abstractions in ScriptCs #277

Merged
merged 1 commit into from
Nov 21, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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