未找到Linux NSwag NPM CLI框架Microsoft.NETCore.App版本2.1.0

问题描述 投票:0回答:1

即使在设置nswag version /runtime:NetCore31之后,命令nswag help和其他命令也会引发以下错误:

NSwag NPM CLI无法找到任何兼容的框架版本框架'Microsoft.NETCore.App'版本'2.1.0'不是找到了。-找到了以下框架:3.1.3位于[/usr/share/dotnet/shared/Microsoft.NETCore.App]

您可以通过安装指定的框架来解决问题和/或SDK。

指定的框架可以在以下位置找到:-https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.1.0&arch=x64&rid=fedora.30-x64child_process.js:660丢错^

Error: Command failed: dotnet "/usr/lib/node_modules/nswag/bin/binaries/NetCore21/dotnet-nswag.dll" help
    at checkExecSyncError (child_process.js:621:11)
    at Object.execSync (child_process.js:657:15)
    at /usr/lib/node_modules/nswag/bin/nswag.js:69:11
    at ChildProcess.exithandler (child_process.js:286:7)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:210:5)
    at Pipe.<anonymous> (net.js:659:12) {
  status: 150,
  signal: null,
  output: [ null, null, null ],
  pid: 10831,
  stdout: null,
  stderr: null
}

我想知道NSwag是否需要2.1.0还是环境设置错误(Linux / Fedora 30)

linux .net-core mono fedora nswag
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.