asp.net mvc - Certain Razor views not publishing -
using vs 2017 mvc 5 razor views. when publish application, handful of specific views not copied over.
i'd discovered several se questions on same issue in 2010-2011 timeframe. @ time, issue build action in file's properties not set content due bug in rc has since been resolved. well, of mine do day content build action.
any reason why small number of views not making in publish?
as far i'm aware, there 2 things can cause happen.
- as in question, build action each view needs set "content"
the view files need included in project file, in
.csproj
file there should line this:<content include="views\controllername\index.cshtml" />
Comments
Post a Comment