I am trying to include files from a second project as EmbeddedResources using the following msbuild target:
<CreateItem Include="..\MyProject.Templates\**\*.css">
<Output ItemName="EmbeddedResource" TaskParameter="Include" />
</CreateItem>
but the included file loose their path e.g. ~\Views\_Layout.cshtml is included as _Layout.cshtml (not Views._Layout.cshtml as is desired). Is there some way to achieve the desired effect?