Is it possible to specify a different folder for the output of the following file?
PreserveNe
A different output folder can be specified by using the Link
metadata on None
/Content
items:
some\folder\%(Filename)%(Extension)
PreserveNewest
When using wildcards in an include statement, this is also the way to preserve the directory hierarchy, even for files coming from outside the project directory:
some\folder\%(RecursiveDir)%(Filename)%(Extension)
PreserveNewest
In SDK-based projects (default for ASP.NET Core / .NET Core / .NET Standard projects) using a 2.0.0+ SDK, the same can be achieved using the LinkBase
metadata: