Skip to content

Commit

Permalink
Switch DLL copy directory to base, update project code.
Browse files Browse the repository at this point in the history
  • Loading branch information
c272 committed Feb 27, 2020
1 parent 0a232c4 commit 94df957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions burrito-api/Data Structures/ClassModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ private void GenerateMethods(ref string code, List<APIMethodModule> methods)
{
var methodCopy = method.Clone();
methodCopy.Async = false;
if (methodCopy.Name.EndsWith("Async"))
{
methodCopy.Name = methodCopy.Name.Substring(0, methodCopy.Name.Length - "Async".Length);
}
GenerateMethods(ref code, new List<APIMethodModule>() { methodCopy });
}

Expand Down
2 changes: 1 addition & 1 deletion burrito-api/Data Structures/ProjectCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public void CompileToProject(string generationPath)
{
try
{
File.Copy(dll + ".dll", Path.Combine(depsFolder, dll + ".dll"), true);
File.Copy(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, dll + ".dll"), Path.Combine(depsFolder, dll + ".dll"), true);
}
catch
{
Expand Down

0 comments on commit 94df957

Please sign in to comment.