Support building with file as direct attachment