You can place build pieces inside dungeons where protection rules allow it.
Sunshine Alley enables dungeon placement for build pieces. You still need the resources and any required crafting station, and ward protection, protected locations and other ordinary placement checks can prevent a particular placement.
