[NPANDAY-254] add MSBuild when adding resources as items

Refactor out common code from the digester and reuse it from the addin

git-svn-id: https://svn.apache.org/repos/asf/incubator/npanday/trunk@1479568 13f79535-47bb-0310-9956-ffa450edef68