和我解决的问题一样。
请检查一些文件是否丢失到解决方案。如果你遇到像 Error - The target "GatherAllFilesToPublish" does not exist in the project.这样的错误,那就打开。Proj 文件并删除此行 <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
Also I notice the MSBuild Path is quite different in VS2017, but maybe that's not related to the problem cuz it uses relative path in the csproj file..