Skip to content

Commit

Permalink
Fix the script path
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoqing committed Jun 1, 2021
1 parent 74b2bc4 commit 8362804
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SpecFirst.MarkdownParser/DecisionTableMarkdownParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ private static string ParseMarkdownToHtml(string markdownText)
private static string GetScript()
{
var assembly = Assembly.GetExecutingAssembly();
string resourcePath = "SpecFirst.MarkdownParser.Script.bundle.js";
string resourcePath = $"{assembly.GetName().Name}.Script.bundle.js";
using Stream stream = assembly.GetManifestResourceStream(resourcePath)!;
using StreamReader reader = new StreamReader(stream!);
return reader.ReadToEnd();
var script = reader.ReadToEnd();
return script;
}
}
}

0 comments on commit 8362804

Please sign in to comment.