Skip to content

Commit 2a5ca6e

Browse files
authored
Remove runtime arg before calling dotnet app (#5320)
1 parent 75d8a4a commit 2a5ca6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/NSwag.Npm/bin/nswag.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ if (runtimeIndices.length > 1) {
7575
console.error("Error: Multiple /runtime:* arguments detected. Please specify only one. Maybe remove the legacy --core argument?");
7676
process.exit(1);
7777
}
78+
else if (runtimeIndices.length === 1) {
79+
args.splice(runtimeIndices[0], 1);
80+
}
7881

7982
if (runtimeValue) {
8083
if (runtimeValue.toLowerCase() === "netcore") {

0 commit comments

Comments
 (0)