title: VSTS build does not seem to publish output files to proper directory
body: <p>I am developing an ASP.NET core application.</p>
  
  <p>I use VSTS online for my source control. I also have a dedicated machine to build the application. </p>
  
  <p>To automate the process, I am now trying to define a build script from VSTS online.</p>
  
  <p>The default VSTS template defines many tasks. I removed all the unneeded tasks for my purpose and am down to just three tasks - "Use NuGet," "NuGet Restore," and "Build Solution."</p>
  
  <p>The default msbuild argument for "Build Solution" task is:</p>
  
  <pre><code>/p:DeployOnBuild=true /p:WebPublishMethod=Package 
  /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true 
  /p:DesktopBuildPackageLocation=
     "$(build.artifactstagingdirectory)\WebApp.zip" 
  /p:DeployIisAppPath="Default Web Site"
  </code></pre>
  
  <p>Although there is no error in running this script, I need to change it such that the output goes to a folder and is not packaged.</p>
  
  <p>Here is part of my directory structure that is relevant for my question:</p>
  
  <pre><code>C:\Dev\RCWebsite\RCWebsite.sln
  C:\Dev\RCWebsite\RCWeb\RCWeb.csproj
  C:\Dev\RCWebsite\RCWeb\Properties\PublishProfiles\FolderProfile.pubxml
  </code></pre>
  
  <p>Here is the content of the publish profile:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
    &lt;WebPublishMethod&gt;FileSystem&lt;/WebPublishMethod&gt;
    &lt;PublishProvider&gt;FileSystem&lt;/PublishProvider&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;ProjectGuid&gt;d7d9f3b7-fd0e-49c1-b6d2-3af5dddb6699&lt;/ProjectGuid&gt;
    &lt;publishUrl&gt;C:\StagingSites\rcweb&lt;/publishUrl&gt;
    &lt;DeleteExistingFiles&gt;True&lt;/DeleteExistingFiles&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>From the console window, I can run the following command:</p>
  
  <pre><code>msbuild .\RCWeb\RCWeb.csproj /p:DeployOnBuild=true 
   /p:PublishProfile=RCWeb\Properties\PublishProfiles\FolderProfile.pubxml
  </code></pre>
  
  <p>This works as expected. The final output is generated in <code>C:\StagingSites\rcweb\</code> directory.</p>
  
  <p>As this command works, I replaced the msbuild argument in VSTS "Build Solution" task as: </p>
  
  <pre><code>/p:DeployOnBuild=true 
   /p:PublishProfile=rcWeb\Properties\PublishProfiles\FolderProfile.pubxml
  </code></pre>
  
  <p>Note that I haven't specified <code>.\RCWeb\RCWeb.csproj</code> as an argument. Guess the build mechanism automatically takes care of this.</p>
  
  <p>When I run this build and look at the log file, I see that the solution is built fine. However, it is never copied to <code>C:\StagingSites\rcweb\</code> directory.</p>
  
  <p>Can someone please tell me what is it that I am missing? Do I need another "deployment" task after "build solution" task? Regards.</p>