title: ASP.Net Core exclude published language directories other than english
body: <p>I publish my ASP.Net Core 3.1 Server like this:</p>
  
  <pre><code>dotnet publish --configuration Release --runtime win7-x64 -p:PublishTrimmed=true --output c:\MyServer
  </code></pre>
  
  <p>What I get in c:\MyServer is a lot of international language directories: cs, de, es, fr, zh-hans etc</p>
  
  <p>How can I publish with only the English version ?</p>
  
  <p>I tried using <code>ExcludeFoldersFromDeployment</code> in my csproj:</p>
  
  <pre><code>  &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
      &lt;RuntimeIdentifier&gt;win7-x64&lt;/RuntimeIdentifier&gt;
      &lt;IsTransformWebConfigDisabled&gt;true&lt;/IsTransformWebConfigDisabled&gt;    
      &lt;AspNetCoreHostingModel&gt;inprocess&lt;/AspNetCoreHostingModel&gt;
      &lt;Nullable&gt;enable&lt;/Nullable&gt;
      &lt;ExcludeFoldersFromDeployment&gt;cs;de;es;fr;he;hi;it;ja;ko;nl;pl;pt;ru;tr-TR;zh-Hans;zh-Hant&lt;/ExcludeFoldersFromDeployment&gt;
    &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>But that didn't help</p>
  
  <p>Any help ?</p>