no data exception and no documentation warnings in generated code

This commit is contained in:
2021-11-25 15:33:55 +01:00
parent 26334719de
commit 39528bc248
4 changed files with 32 additions and 63 deletions

View File

@ -70,6 +70,10 @@ if [ "$STAGE2" = "1" ]; then
-e 's#\(using '$PACKAGE_NAME'.OpenApi;\)#\1\n\n// added by post-processor\nusing '$PACKAGE_NAME'.Services;\n#' \
-e 's#^\([[:space:]]*\)\(// Add framework services.\)#\1// added by post-processor\n\1services.AddTransient<IDbService, DbService>();\n\n\1\2#'
echo "disable documentation warnings in generated code"
sed -i output/src/$PACKAGE_NAME/$PACKAGE_NAME.csproj \
-e 's#\(</PropertyGroup>\)#<NoWarn>1591</NoWarn>\n\1#'
echo "create directories for manually developed code"
mkdir output/src/$PACKAGE_NAME/Implementations
mkdir output/src/$PACKAGE_NAME/Services