Skip to content

Commit 9f96bac

Browse files
committed
Adding fix to create recipes folder. Changing compile folder to bin/debug
1 parent 93b29fb commit 9f96bac

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Scriptcs/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ private static CompositionContainer ConfigureMef()
4646
{
4747
var catalog = new AggregateCatalog();
4848
catalog.Catalogs.Add(new AssemblyCatalog(typeof(Program).Assembly));
49+
50+
var recipesFolder = AppDomain.CurrentDomain.BaseDirectory + @"\Recipes";
51+
if (!Directory.Exists(recipesFolder))
52+
Directory.CreateDirectory(recipesFolder);
53+
4954
catalog.Catalogs.Add(new DirectoryCatalog(AppDomain.CurrentDomain.BaseDirectory + @"\Recipes"));
5055
return new CompositionContainer(catalog);
5156
}

src/Scriptcs/Scriptcs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<DebugSymbols>true</DebugSymbols>
2121
<DebugType>full</DebugType>
2222
<Optimize>false</Optimize>
23-
<OutputPath>..\..\..\..\tools\</OutputPath>
23+
<OutputPath>bin\debug\</OutputPath>
2424
<DefineConstants>DEBUG;TRACE</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>

0 commit comments

Comments
 (0)