In my project (an XNA .contentproj) I have files that need compiling, and files that just need to be copied to the output directory:
<Compile Include="Foo.cs" />
<None Include="Bar.xml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
This works fine when i'm compiling from visual studio, but when I build the project from the command line, these 'None' files are not copied to the output directory. I tried setting the copy to 'Always' as well.
How can I tell msbuild it should do that?
EDIT: I found out this is only for XNA .contenproj msbuild files. Maybe I'm missing some msbuild parameters.