Revert "Remove <targetPath>.</targetPath> for resources."

This reverts commit 96dc90abeca263f8a63f230f432b780568c01f8d.