I use
<ItemGroup>
<EmbeddedResource Include="..\..\resources\hbm\*.hbm.xml" />
</ItemGroup>
include a bunch of xml files in my c # project. It works great.
But I do not want them at the "root level" of my project, I would rather see them in a subfolder in my project.
For example, this file is included in a folder Mappingin Visual Studio:
<ItemGroup>
<EmbeddedResource Include="Mapping\User.hbm.xml" />
</ItemGroup>
What I want for my files *.hbm.xml.
I can’t figure out how to do this, and still keep my wildcard *.hbm.xmlpart, and also save the actual files in another directory.
I looked at the MSDN document on MSBUILD and the elements, but no luck.
source
share