Browse Source

adjusted VS Code task to generate model.json required by the JS/CSS/HTML dev loop

pull/3324/head
Holger Schmidt 8 months ago
parent
commit
2a4345f14e
  1. 9
      ICSharpCode.ILSpyX/MermaidDiagrammer/html/.vscode/tasks.json

9
ICSharpCode.ILSpyX/MermaidDiagrammer/html/.vscode/tasks.json vendored

@ -9,10 +9,13 @@
"group": "build", "group": "build",
"type": "shell", "type": "shell",
"command": [ "command": [
"if (Test-Path '../bin/Release/net8.0/netAmermaid.exe') {", "$folder = '../../../ICSharpCode.ILSpyCmd/bin/Debug/net8.0/';", // to avoid repetition
" ../bin/Release/net8.0/netAmermaid.exe -a ../bin/Release/net8.0/netAmermaid.dll -n NetAmermaid System -j -o .", "$exePath = $folder + 'ilspycmd.exe';",
"$assemblyPath = $folder + 'ICSharpCode.Decompiler.dll';", // comes with XML docs for testing the integration
"if (Test-Path $exePath) {",
" & $exePath $assemblyPath --generate-diagrammer --generate-diagrammer-json-only --outputdir .",
"} else {", "} else {",
" Write-Host 'netAmermaid.exe Release build not found. Please build it first.';", " Write-Host 'ilspycmd.exe Debug build not found. Please build it first.';",
" exit 1", " exit 1",
"}" "}"
], ],

Loading…
Cancel
Save