NSwag NPM package v13.9.1 appears to be missing Net50 binaries
See original GitHub issueI’m in the process of upgrading a project to Net50 and very happy to see that NSwag already supports Net50 😃
However, the current NPM package appears to be missing the necessary binaries to run with the Net50 runtime. Executing with /runtime:Net50
produces the error
NSwag NPM CLI
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET program, but dotnet-/path/to/project/node_modules/nswag/bin/binaries/Net50/dotnet-nswag.dll does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
child_process.js:655
throw err;
^
Error: Command failed: dotnet "/path/to/project/node_modules/nswag/bin/binaries/Net50/dotnet-nswag.dll" run nswag.json /runtime:Net50
at checkExecSyncError (child_process.js:616:11)
at Object.execSync (child_process.js:652:15)
at /path/to/project/node_modules/nswag/bin/nswag.js:55:19
at ChildProcess.exithandler (child_process.js:299:7)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1047:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 66830,
stdout: null,
stderr: null
}
And sure enough, that binaries/Net50
folder does not exist. Could it be because Net50 has not been added to the build/01_Build.bat
script?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
nswag - npm Package Health Analysis
Is nswag safe to use? The npm package nswag was scanned for known vulnerabilities and missing license, and no issues were found. Thus...
Read more >Nswag NPM
The NSwag project provides tools to generate Swagger specifications from existing ASP.NET Web API controllers and client code from these Swagger specifications.
Read more >nswag error in .NET Core 3.1 #8719
As I noticed, the nswag version is 13.0.6 which does not support .NET Core 3.1 I believe. Even though I updated nswag ver...
Read more >nswag
Start using nswag in your project by running `npm i nswag`. There are 6 other projects in the npm registry using nswag.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jeremyVignelles you see, already time for a new release 😏
Yep, got lost in the Nuke CI migration… Hopefully fixed in this PR: https://github.com/RicoSuter/NSwag/pull/3713