title: visual studio 2015 .net core publish not using `ExcludeFoldersFromDeployment`
body: <p>In VS 2015, on a web project, I have this as my <code>*.pubxml</code> file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
  This file is used by the publish/package process of your Web project. You can customize the behavior of this process
  by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
  --&gt;
  &lt;Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
  &lt;PropertyGroup&gt;
      &lt;WebPublishMethod&gt;FileSystem&lt;/WebPublishMethod&gt;
      &lt;LastUsedBuildConfiguration&gt;Release&lt;/LastUsedBuildConfiguration&gt;
      &lt;LastUsedPlatform&gt;Any CPU&lt;/LastUsedPlatform&gt;
      &lt;SiteUrlToLaunchAfterPublish /&gt;
      &lt;LaunchSiteAfterPublish&gt;True&lt;/LaunchSiteAfterPublish&gt;
      &lt;ExcludeApp_Data&gt;False&lt;/ExcludeApp_Data&gt;
      &lt;PublishFramework&gt;netcoreapp1.0&lt;/PublishFramework&gt;
      &lt;UsePowerShell&gt;True&lt;/UsePowerShell&gt;
      &lt;publishUrl&gt;Y:\timelapse_player&lt;/publishUrl&gt;
      &lt;DeleteExistingFiles&gt;False&lt;/DeleteExistingFiles&gt;
      &lt;ExcludeFilesFromDeployment&gt;**\media\**\*.*&lt;/ExcludeFilesFromDeployment&gt;
      &lt;ExcludeFilesFromDeployment&gt;**\ftp_drop\**\*.*&lt;/ExcludeFilesFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;media&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;ftp_drop&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;**\media&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;**\ftp_drop&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;..\media&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;..\ftp_drop&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;wwwroot\media&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;wwwroot\ftp_drop&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;wwwroot\media\&lt;/ExcludeFoldersFromDeployment&gt;
      &lt;ExcludeFoldersFromDeployment&gt;wwwroot\ftp_drop\&lt;/ExcludeFoldersFromDeployment&gt;
  &lt;/PropertyGroup&gt;
  &lt;ItemGroup&gt;
      &lt;media Include="media\**\*.*" /&gt;
      &lt;ftp_drop Include="ftp_drop\**\*.*" /&gt;
  &lt;/ItemGroup&gt;
  &lt;PropertyGroup&gt;
      &lt;ExcludeFilesFromDeployment&gt;@(media);@(ftp_drop)&lt;/ExcludeFilesFromDeployment&gt;
  &lt;/PropertyGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>and not one of those rules are taking.  If I watch <code>\AppData\Local\Temp\PublishTemp\PROJECT_NAME</code> I see the folder copied in there along with the files.  All i need to do is not send the <code>media</code> folder over to the server because it slow the process to like 5 mins because there are so many images.</p>
  
  <p>For the life of my I can't seem to figure it out.  </p>