iis-7

Visual Studio Web Deploy not publishing all Files


When I publish my ASP.net MVC 3.0 Application to IIS 7 using Visual Studio Web Deploy settings one Partial View File is not updated.

Is it possible to debug why it failed for one particular file?


Solution

  • Select the view that is not publishing to server,
    go to properties (click F4) of the view
    under properties
    check the properties set for it:

    1. Build Action : this should be Content
    2. Copy to Output Directory: this should be like the other file are configured (I believe it should be Do not copy)

    Then publish it.