0

When I try to publish my ASP.Net MVC web site, I get the following page: enter image description here

The lonely looking Publish button does nothing.

Any ideas how I fix this?

Tim Long
  • 13,508
  • 19
  • 79
  • 147
  • Can you please confirm the project type? Also, if this is an existing project, can you try moving all the files under Properties\PublishProfiles outside the project and try Publish again? – vijayrkn Jun 30 '17 at 05:21
  • It's an ASP.Net MVC web application. I said that in the first line. – Tim Long Jul 02 '17 at 02:57

1 Answers1

0

I had similar problem and it solved by changing csproj file:

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v14.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />

changed to

<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" Condition="true" />

This only works of course if you're trying to update an older project to the newer VS2017 environment.

Fandango68
  • 4,461
  • 4
  • 39
  • 74