For #25555 - Framework & engine blocks can now be included in envs

This is consistent with the existing support for apps.