title: The element <publishData> is unrecognized, or not supported in this context
body: <p>Am using TFS 2017 on-premise for building our code. I have used msbuild task with the following parameters. </p>
  
  <pre><code>/p:DeployOnBuild=true /p:AllowedReferenceRelatedFileExtensions=none /p:PublishProfile="$(Build.SourcesDirectory)\Source\PublishSettings\xxx.azurewebsites.net.publishsettings" /p:VisualStudioVersion=14.0  /p:Configuration=Release
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CQBOm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CQBOm.png" alt="enter image description here"></a></p>
  
  <p>Log: </p>
  
  <pre><code>2017-12-27T07:43:15.6823390Z   Publish Pipeline Deploy phase Stage PipelineCopyAllFilesToOneFolderForMsdeploy
  2017-12-27T07:43:15.6823390Z Package:
  2017-12-27T07:43:15.6823390Z   Invoking Web Deploy to generate the package with the following settings:
  2017-12-27T07:43:15.6979640Z   $(LocalIisVersion) is 0
  2017-12-27T07:43:15.6979640Z   $(DestinationIisVersion) is 0
  2017-12-27T07:43:15.6979640Z   $(UseIis) is True
  2017-12-27T07:43:15.6979640Z   $(IisUrl) is http://localhost:7372/
  2017-12-27T07:43:15.6979640Z   $(IncludeIisSettings) is False
  2017-12-27T07:43:15.6979640Z   $(_DeploymentUseIis) is False
  2017-12-27T07:43:15.6979640Z   $(DestinationUseIis) is False
  2017-12-27T07:43:15.6979640Z GetMSDeployInstalledVersionPath:
  2017-12-27T07:43:15.6979640Z   $(_DefaultMSDeployMaxVersion) is 3
  2017-12-27T07:43:15.6979640Z   $(_MSDeployVersionsToTry) is 9.0
  2017-12-27T07:43:15.6979640Z   $(MSDeployPath) is C:\Program Files (x86)\IIS\Microsoft Web Deploy V3\
  2017-12-27T07:43:15.6979640Z GenerateMsdeployManifestFiles:
  2017-12-27T07:43:15.6979640Z   Generate source manifest file for Web Deploy package/publish ...
  </code></pre>
  
  <p>I  got the below error. </p>
  
  <pre><code>The element &lt;publishData&gt; is unrecognized, or not supported in this context
  </code></pre>
  
  <p><strong>I tested my publish setting which is downloaded from azure, it works perfectly fine with the visual studio deployment.</strong> My web api project is of .Net 4.6.1 .</p>
  
  <p>Note: Only this project is not building properly, all other project of .Net 4.5.1 builds, perfectly fine in our on-premise tfs agent.</p>