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:
Publish Started
Backend.Core -> C:\Projects\Backend.Core\bin\Release\Backend.Core.dll
Backend.EntityFramework -> 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]
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...
Any help is appreciated!
I am using Visual studio community 2017, Version 15.5.6
It looks like the file for the web publish profile is missing, try running through the publish setup from the start and see if that fixes your problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With