See the Readme in /generators/dotnetcore-server-interfaces/PrincipleStudios.OpenApiCodegen.Server.Mvc for usage details.
-
Add
Debugger.Launch();
into the generator to ensure you get prompted to attach the debugger -
Run:
dotnet build-server shutdown
-
Run:
dotnet build examples\dotnetstandard-client\PrincipleStudios.ClientInterfacesExample\PrincipleStudios.ClientInterfacesExample.csproj -p:UseProjectReferences=true --no-incremental
You must repeat step 2 each time the code changes; this should detatch your debugger.
Consider:
-
Adding binary log to the build command and use the MSBuild Binary and Structured Log Viewer
dotnet build examples\dotnetstandard-client\PrincipleStudios.ClientInterfacesExample\PrincipleStudios.ClientInterfacesExample.csproj -bl:..\binlogs\client-examples.binlog --no-incremental -p:UseProjectReferences=true; start ..\binlogs\client-examples.binlog