-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nswag CLI doesn't work on MacOS High Sierra with DotNet Core 2.0 #1167
Comments
Add the parameter |
v11.14.0: We improved the assembly loader (mainly for .NET Core) so that it runs in a more isolated space and the loaded DLLs should better match the requested versions. Please test this with your projects to ensure that we didnt introduce regressions. Important if you have DLL loading problems:
For more information regarding assembly loading: https://github.com/RSuter/NSwag/wiki/Assembly-loading Main commit: 04576e4#diff-14dafe6661bab407ae5c0d7095ccd1f4 |
Updated to the latest version via npm:
However the latest available runtime cannot be found:
|
Yes, if you do not specify a runtime, it uses .net core 1.1 which seems to be not installed on your system... this behavior is expected. You always have to specify the runtime... |
Are there any plans to deprecate the use of .net core 1.1 and switch to 2.x? |
I don't think we will deprecate 1.1 soon, just add |
It is. Was just a thought because 1.1 is barely mentioned anymore by MS and basically legacy already. |
Ok, I think I will not remove it but change the default to .NET Core 2.0 or 2.1 in the summer... (next major release) |
Breaking defaults updated: #984 |
Following exceptions are thrown if using nswag CLI:
➜ nswag
NSwag NPM CLI
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found.
/
child_process.js:644
throw err;
^
Error: Command failed: dotnet "/usr/local/lib/node_modules/nswag/bin/binaries/NetCore11/dotnet-nswag.dll"
at checkExecSyncError (child_process.js:601:13)
at Object.execSync (child_process.js:641:13)
at c.exec (/usr/local/lib/node_modules/nswag/bin/nswag.js:65:11)
at ChildProcess.exithandler (child_process.js:267:7)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
➜ dotnet --version
2.0.0
The text was updated successfully, but these errors were encountered: