issue #23086: build foundation files in build_app