The target "MSDeployPublish" does not exist in the project
I see people refer to this link as it would give the solution to my problem. I read the complete thread and tried every single idea given there. Nothing worked. I also use VS 2015 Community and not VS 2013.
I am trying to publish a Web API through VS 2015 Community. I have done it before, but this time it seems to not be working.
I got the publish settings from IIS on the server and the validation on the connection works fine.
When I do the publish I get this error:
The target "MSDeployPublish" does not exist in the project
I tried several things, but the most mentioned one is (re)installing the Microsoft.Web.WebJobs.Publish
NuGet Package and check the CSPROJ file for these two lines:
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
You already guessed that this isn't working in my case (otherwise I wouldn't post here).
The first thing I notice is the version 10.0. I backtracked the path and there isn't a version 10.0 on my disk. Only 12, 14 and 15. 14 seems to have the targets, so I changed the version to 14... Same error.
I tried to install several packages, checked the CSPROJ file again and nothing seems to happen. Same error over and over again (getting a bit frustrated here... )
Does anyone have another solution for this?
* UPDATE *
It seems to work on other projects. It looks like something is wrong with this particular project.
* UPDATE 2 *
I set up a FTP connection to the host, as I was trying something else. I tried to publish with the FTP, but gave almost the same error:
The target "GatherAllFilesToPublish" does not exist in the project.