Browse Source

outputting in to a folder next to and named after the input assembly + " diagrammer" by default

pull/3324/head
Holger Schmidt 8 months ago
parent
commit
5d80c710c4
  1. 7
      ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs

7
ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs

@ -92,8 +92,11 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer @@ -92,8 +92,11 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer
{
string modelJson = SerializeModel(model);
// If no out folder is specified, default to a "netAmermaid" folder next to the input assembly.
var outputFolder = OutputFolder ?? Path.Combine(Path.GetDirectoryName(assemblyPath) ?? string.Empty, "netAmermaid");
// If no out folder is specified, default to a "<Input.Assembly.Name> diagrammer" folder next to the input assembly.
var outputFolder = OutputFolder
?? Path.Combine(
Path.GetDirectoryName(assemblyPath) ?? string.Empty,
Path.GetFileNameWithoutExtension(assemblyPath) + " diagrammer");
if (!Directory.Exists(outputFolder))
Directory.CreateDirectory(outputFolder);

Loading…
Cancel
Save