See the Readme in /generators/dotnetcore-server-interfaces/PrincipleStudios.OpenApiCodegen.Server.Mvc for usage details.
Prerequisites:
.NET 8.0 SDK
-
Add
Debugger.Launch();
into the generator to ensure you get prompted to attach the debugger -
Run:
dotnet build-server shutdown
-
Run one of the following:
dotnet build examples\dotnetcore-server-interfaces\PrincipleStudios.ServerInterfacesExample\PrincipleStudios.ServerInterfacesExample.csproj -p:UseProjectReferences=true --no-incremental dotnet build examples\dotnetcore-server-interfaces\PrincipleStudios.ServerInterfacesExample.Oauth\PrincipleStudios.ServerInterfacesExample.Oauth.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\dotnetcore-server-interfaces\PrincipleStudios.ServerInterfacesExample\PrincipleStudios.ServerInterfacesExample.csproj -bl:..\binlogs\server-examples.binlog --no-incremental -p:UseProjectReferences=true; start ..\binlogs\server-examples.binlog dotnet build examples\dotnetcore-server-interfaces\PrincipleStudios.ServerInterfacesExample.Oauth\PrincipleStudios.ServerInterfacesExample.Oauth.csproj -p:UseProjectReferences=true --no-incremental -bl:..\binlogs\server-examples-oauth.binlog --no-incremental -p:UseProjectReferences=true; start ..\binlogs\server-examples-oauth.binlog