question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NSwag NPM package v13.9.1 appears to be missing Net50 binaries

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
RicoSutercommented, Nov 13, 2020

@jeremyVignelles you see, already time for a new release 😏

0reactions
RicoSutercommented, Nov 11, 2021

Yep, got lost in the Nuke CI migration… Hopefully fixed in this PR: https://github.com/RicoSuter/NSwag/pull/3713

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found