E.g. [https://github.com/ptr727/ProjectTemplate/blob/develop/.github/actions/dotnet-publish-default/action.yml#L64] sets the build target to debug.
The build target in all dotnet build or publish related tasks that generated published content should be release if main branch else debug.
Unit testing or codegen or other build activities where dotnet content is not being published should always use debug to help with error richness in execution.
Find all places where dotnet builds "to be released" artifacts and set the build type appropriately.
E.g. [https://github.com/ptr727/ProjectTemplate/blob/develop/.github/actions/dotnet-publish-default/action.yml#L64] sets the build target to debug.
The build target in all dotnet build or publish related tasks that generated published content should be release if main branch else debug.
Unit testing or codegen or other build activities where dotnet content is not being published should always use debug to help with error richness in execution.
Find all places where dotnet builds "to be released" artifacts and set the build type appropriately.