Open juicebyjustin opened 3 years ago
The error you get might be related to a cross-platform issue, since you get a Win32Exception. Currently I'm using windows explorer to open a browser and navigate to the running API's swagger page.
// Open swagger
_logger.LogInformation("Opening Swagger docs: " + _outputProjectPath);
ProcessStartInfo openSwagger = new ProcessStartInfo("explorer");
openSwagger.Arguments = _projectTemplateSettings.DotNET.StartupProjectURL;
await Process.Start(openSwagger).WaitForExitAsync();
I think this functionality needs to be changed or removed.
I switched from VS Code to Visual Studio and actually debugged the project. I see that it's trying to start the web browser at https://localhost:44370
. I'm running on a Mac so of course explorer
is not available. However, Swagger is not running on port 44370.
Can you try to run the generated project from in the _Output folder?
I am trying to run this project from a fresh clone, and I get an error message running
dotnet watch run
ordocker-compose -up
. There are no log messages after the message below.How to replicate:
dotnet build
CodeGen
dotnet watch run
Complete Log Output: https://gist.github.com/juicebyjustin/d5d61c7b50550d19ab65ffd06cb12875
Error Message:
CodeGen/Runners/DotNETProjectRunner.cs:line 50: