I'm trying to copy all files in a project to an output directory.
Right now I've unloaded my process and in my "TestProject.csproj" I have these options for the item I'd like to copy:
<ItemGroup>
<Content Include="TEST\file1.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="TEST\file2.xml" >
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
What i want is to be able to copy all items in that to folder, included other that gonna be added later on ( ...file3.xml, file4.xml ).
I don't want to be forced to manually add to every file the "PreserveNewest" behavior, but I would like to use some sort of "post-compile option" to make it work.
Any advice?