title: dotnet build cmd with zip package creates a zip of lengthy subfolders for .netcoreapp 2.1
body: <p>This is my dotnet build command for my .netcoreapp 2.1 MVC website which has two class library projects(<code>VinXP.Core.csproj, VinXP.Infrastructure.csproj</code>) referenced to the main web project(<code>VinXP.web.csproj</code>).</p>
  
  <pre><code>dotnet build VinXP.sln /nologo /p:PublishProfile=Release /p:PackageLocation="E:\Publish\DRS\package" /p:OutDir="E:\Publish\DRS\out" /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /maxcpucount:1 /p:platform="Any CPU" /p:configuration="Release" /p:DesktopBuildPackageLocation="E:\Publish\DRS\package\package.zip"
  </code></pre>
  
  <p>This above command doesn't create a zip in <code>E:\Publish\DRS\package</code> as mentioned in DesktopBuildPackageLocation. Instead, it creates <code>E:\Publish\DRS\package\VinXP.VinXPWeb.zip.</code></p>
  
  <p>Upon unzipping this zipped file, my build is available in a very deep sub folder as </p>
  
  <pre><code>E:\Publish\DRS\package\VinXP.Web.zip\Content\E_C\Working\Projects\Git\VinXPDevelopment\src\VinXP.Web\obj\Release\netcoreapp2.1\PubTmp\Out\[build]
  </code></pre>
  
  <p>Why cant it doesn't create a zip file with a build without creating a lengthy subfolder as I mentioned in <code>DesktopBuildPackageLocation="E:\Publish\DRS\package\package.zip"</code> on dotnet build command?</p>
  
  <p>Attempts:</p>
  
  <p>1 : Changed the path mentioned in the keys of my dotnet build command <code>"PackageLocation","OutDir","DesktopBuildPackageLocation"</code> but it only changes the root folder.</p>
  
  <p>2 : Looked for .net documentation on Microsoft <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-build" rel="nofollow noreferrer">site</a>  couldn't find it useful with my challenge faced.</p>