0

I'm having 2 folders in my project directory:

.\Scripts

and

.\bin\Scripts

I'd like to exclude the "bin\Scripts" directory from publishing. This is what I tried to do in a wpp.targets file:

<ItemGroup>
   <ExcludeFromPackageFolders Include=".\bin\Scripts"></ExcludeFromPackageFolders>
</ItemGroup>

This does not exclude the folder but when i just add "Scripts" to the include property, both folders will be excluded.

How do I exclude just "bin\Scripts"?

Ok, so the main problem is, that the asset files are being copied to the output directory. I can not change the project settings. Is there a way to prevent the content files from being copied to the output directory?

Thanks in advance

Megamind
  • 251
  • 2
  • 16

0 Answers0