admin管理员组文章数量:1315991
An interesting one myself and a couple of colleagues have come across on the same project;
Since updating to Visual Studio 17.12 (currently on 17.12.4) one or potentially more of my CSHTML razor files have some syntax in them that are being treated as literal and not rendering.
For example, the below @(nameof(RequestHeader.Conditions))
should render to simply Conditions
However the @(nameof(RequestHeader.Conditions))
ends up in the resulting HTML.
Note that the initial @(nameof(Request.Headers))
is still being rendered correctly.
I can see in the resuling Razor generated class the end result that causes this
If I/we revert back to Visual Studio 17.11.6, the code works as expected without having to change a thing...
Any thoughts would be great cheers
本文标签: Razor rendering issue on Visual Studio 1712Stack Overflow
版权声明:本文标题:Razor rendering issue on Visual Studio 17.12 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741982784a2408498.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论