Having installed and ran Swagger Studio 13.6.0.0 on a clean machine. I have selected my Runtime as NetCore31. Selected OpenAPI/Swagger Specification, inserted the URL of the Swagger def: https://duedil.io/v4/swagger.json. Clicked Create Local Copy which populates the text area below with a valid definition.
Moving to the outputs window on the right:
Whatever I select and click Generate Outputs or Generate Files, I get a .net stacktrace.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at NSwag.Commands.NSwagDocument.<StartCommandLineProcessAsync>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NSwag.Commands.NSwagDocument.<>c__DisplayClass9_0.<<ExecuteCommandLineAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NSwag.Commands.NSwagDocument.<ExecuteCommandLineAsync>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NSwagStudio.ViewModels.DocumentViewModel.<>c__DisplayClass17_0.<<GenerateAsync>b__0>d.MoveNext()
in C:\projects\nswag\src\NSwagStudio\ViewModels\DocumentViewModel.cs:line 56
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MyToolkit.Mvvm.ViewModelBase.<>c__DisplayClass14_0.<<RunTaskAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MyToolkit.Mvvm.ViewModelBase.<RunTaskAsync>d__12`1.MoveNext()
I can only assume clicking create local copy, is suppose to write a file which it failed with permission issues etc? Anyone know how to resolve this or know what it is actually doing to assist in debugging. The error doesn't help understand where the file is expected.
User contributions licensed under CC BY-SA 3.0