opserver / Opserver

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

Web publish error #286

Closed OverwindSlash closed 6 years ago

OverwindSlash commented 6 years ago

Hi, Guys When I tried to publish Opserver project to Web Deploy Package,I got this error on Web Publish Activity window : D:\Workspace\Github\Opserver\Opserver.csproj(0,0): Error MSB4057: The target "Package" does not exist in the project.

I wonder to known whether it's a configuration error of my IDE (VS 2017 15.3.5) or something else? Thanks in advance.

BTW. This project can run properly when debugging.

OverwindSlash commented 6 years ago

Hi, I think I probably found the problem. Change <Import Project="..\lib\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" /> To <Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" /> in Opserver.csproj Line 679 and the build process can be done properly.

NickCraver commented 6 years ago

Fixed in latest for all, thanks!