title: dotnet publish with /p:PublishProfile=?
body: <p>I'm trying to call "dotnet publish" with a specific publish profile pubxml file as documented here :</p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/visual-studio-publish-profiles?view=aspnetcore-2.1&amp;tabs=aspnetcore2x" rel="noreferrer">https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/visual-studio-publish-profiles?view=aspnetcore-2.1&amp;tabs=aspnetcore2x</a></p>
  
  <p>However, everything I try seems to result in the default behaviour, and the /p:PublishProfile part is ignored. </p>
  
  <pre><code>dotnet publish /p:PublishProfile="MyFolderProfile"
  </code></pre>
  
  <p>Doesn't work, and logs no error, building to the default location under "/obj".</p>
  
  <p>I do note that an intentionally incorrect command has the same result though, eg: </p>
  
  <pre><code>dotnet publish /p:PublishProfile="MyFolderProfile-XXXXX"
  </code></pre>
  
  <p>What am I doing wrong? - Any pointers would be greatly appreciated! </p>