5
I am using Mono 5.10.1 and Visual Studio Professional for Mac (Version 7.5.4 build 3)
Views do not recognize tags like @model, @Viewbag and @Viewdata, either in older projects that were originally created in Visual Studio 2017 Windows, or in a simple new project using . Net Framework 4.6.1
I put in GIT a standard project created, even in it the Views do not recognize the tags, but by downloading the project in a Visual Studio 2017 Windows the tags are recognized normally. GIT: https://github.com/DanielGregatto/TesteRazor
Has anyone been through this? I’ve been researching for a few days now.
It does not recognize in the editor or also shows error in execution?
– Leandro Angelo
Only in the editor, build works normally.
– Daniel Gregatto
I don’t know if you’ve ever seen this: https://stackoverflow.com/questions/30311355/visual-studio-2015-not-syntax-highlighting-razor-nor-intellisense It’s the same problem?
– William John Adam Trindade
@Williamjohnadamtrindade Yes, I have tried this solution. I have deleted all preferences and VS cache.
– Daniel Gregatto
@Danielgregatto But it’s the same problem, I mean, the description of the problem is the same that you’re experiencing right now?
– William John Adam Trindade
@Williamjohnadamtrindade Yes
– Daniel Gregatto
I have had similar problem and I will just link here: https://answall.com/questions/141896/highlighting-n%C3%A3o-funciona-nas-views-Razor-mvc-5
– George Wurthmann