title: Excluding files from nuget package while including all
body: <p><a href="https://stackoverflow.com/questions/26142479/how-to-exclude-a-subdirectory-and-contents-from-a-nuget-package">This question</a> is similar but doesn't quite help me.</p>
  
  <p>I'm using the following <code>&lt;file&gt;</code> tag to try to add all files except for one folder, but it's not working.</p>
  
  <pre><code>&lt;file src="**" exclude="BuildConfig" /&gt;
  </code></pre>
  
  <p><code>**</code> successfully copies all folders and contents, but the exclude isn't working.</p>
  
  <p>I have tried several variations:</p>
  
  <pre><code>&lt;file src="**" exclude="**\BuildConfig" /&gt;
  &lt;file src="**" exclude="**\BuildConfig\*" /&gt;
  &lt;file src="**" exclude="**\BuildConfig\*.*" /&gt;
  // mentioned in the question above, not sure why you would need to .. back if it's a root folder
  &lt;file src="**" exclude="..\BuildConfig\*.*" /&gt; 
  </code></pre>
  
  <p>And basically every combination I could think of. </p>
  
  <p>My output nuget zip looks like this:</p>
  
  <pre><code>- App
  - App_Data
  - BuildConfig
  - Views
  - etc
  </code></pre>
  
  <p>How can I exclude this folder at the root level while doing an include all?</p>
  
  <p>I'm building this using octopack for octopus deploy, if that matters.</p>