opserver / Opserver

Stack Exchange's Monitoring System
https://opserver.github.io/Opserver/
MIT License
4.5k stars 827 forks source link

The target "MSDeployPublish" does not exist in the project #290

Closed AlexSikilinda closed 6 years ago

AlexSikilinda commented 6 years ago

Hi,

I pulled the last version and tried to deploy it via VS "publish" menu (we use publish profile file which points to Azure). It used to work, but now I get "The target "MSDeployPublish" does not exist in the project" error.

A little investigation showed that it was caused by commit 939c7331441fdf8ad85ed9fe6c2e8658fafc3acc "Defunct the VS install on build servers" in which Opserver.csproj was modified so that

<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />

was replaced with

<Import Project="..\lib\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />

Reverting this change fixed my issue.

AlexSikilinda commented 6 years ago

Possibly a duplicate fo #286

NickCraver commented 6 years ago

Can you please try latest?

NickCraver commented 6 years ago

This should be resolved in latest, closing out :)