title: Can't publish Azure Function
body: <p>I have created a new Azure function which references a few of my other projects in my solution. Then I Try to publish my function to Azure by using visual studio and I get the following errors:</p>
  
  <pre><code> Publish Started
    Backend.Core -&gt; C:\Projects\Backend.Core\bin\Release\Backend.Core.dll
    Backend.EntityFramework -&gt; C:\Projects\Backend.EntityFramework\bin\Backend.EntityFramework.dll
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(4368,5): error : The value for PublishProfile is set to 'State-Persistance-Handler - Web Deploy', expected to find the file at 'C:\Projects\Backend.EntityFramework\Properties\PublishProfiles\State-Persistance-Handler - Web Deploy.pubxml' but it could not be found. [C:\Projects\Backend.EntityFramework\Backend.EntityFramework.csproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(4375,4): error : PublishProfile(State-Persistance-Handler - Web Deploy) is set. But the $(WebPublishMethod) does not have a valid value.  Current Value is "". [C:\Projects\Backend.EntityFramework\Backend.EntityFramework.csproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\Web\Microsoft.Web.Publishing.targets(4382,5): error : Target ValidatePublishProfileSettings Failed [C:\Projects\Backend.EntityFramework\Backend.EntityFramework.csproj]
  </code></pre>
  
  <p>For some reason it looks somewhere else for the publish profile. I have no clue how this can be. Unfortunately I don't really have more information then this...</p>
  
  <p>Any help is appreciated!</p>
  
  <p>I am using Visual studio community 2017, Version 15.5.6</p>