I'm using Microsoft Visual Studio 2013 professional on a windows 10 laptop and I am seeing an error in all my razor views. The error says the name 'X' does not exist in the current context e.g. The name 'Html' does not exist in the current context.
From searching the internet for solutions I have tried the following but still not fixed
- Run visual studio repair form control panel (uninstall programs)
- Run Windows update
- Checked that the references are set to copy local
- Deleted my .suo file, cleaned and rebuilt
- Tried fully qualified namespaces
- Razor versions are 3.0 in both config and view config
- Unload Reload the project
- Reset all my settings using import and export settings wizard
- Cleaned all packages and cleared package cache
The error looks like so
Can anyone suggest anything else apart from uninstalling and then reinstalling? Despite these errors in my views the application will still build and run in the browser with no ysod.
SIMILAR ISSUE "The name 'HTML' does not exist in the current context" in MVC 3 Views
EDIT - Using info from stackoverflow.com/questions/20422007/… if i go to project properties and make a space in assembly name and save and rebuild then it works!! However as soon as i close VS down and start it up again the issue persists
Thanks Paul