This is the new little code on my View.cshtml:
@Html.HiddenFor(i => i.vVendaUnitarioSemImpostoSemFormatacao)
When I'm on debug mode, it works normally, but when I put in release mode and publish on azure, doesn't update what I've codded.
I've already tried:
- Click on compiling before publishing in visual studio options.
- Tried to set true on .csproj
<MvcBuildViews>true</MvcBuildViews> - Publishing from another computer
- Change another View from my project and works normally, but that one specifically don't.
- Tried to put
optimizeCompilations="trueon<compilation>in web.config - Tried to copy and paste on ftp project to check if will work.
Someone can help me on that?
I saw this post Certain Razor views not publishing . What I did to resolve the problem was create another view, with another name and change the code where I'm calling the old view.