No razor intellisense, syntax highlighting or debugging in Visual Studio 2013 Preview/Umbraco 6.1
I'm desperately hoping someone here can help me with this as I can't seem to find ANYTHING to help.
I created a Umbraco 6.1 project in Visual Studio 2012, and everything was working fine. I had intellisense, debugging and syntax highlighting.
I installed Visual Studio 2013 Preview and opened the previously created project, and I now have no syntax highlighting or debugging in razor.
I initially thought it was ReSharper's fault (version 8.0), so I uninstalled it and reset VS back to factory settings. Nothing. I also noticed when I uninstalled that, that the intellisense (the only thing I still had for razor) had disappeared too. So I can only assume, that without ReSharper, I have no intellisense, syntax highlighting or debugging for razor.
I also installed the ASP.NET and Web Tools for Visual Studio 2013 Preview Refresh Update incase that helped. Nothing. I have tested whether it all works for razor in standard web application, and it does, so it's something to do with this specific Umbraco project.
The only suggestions I have are, check your cshtml files are included in your solution (has caught be out before) and close down vs.net and delete your suo file, then reopen.
I had this problem and had to go to Tools\options then select Text Editor\All Languages. on there make sure Auto List Members is checked and not boxed. do the same for hide advanced members and Parameter information. Then check the same under C#. they have to have check marks. one this is done. close and restart VS.
it should work. Resharper does this when a trial ends or is uninstalled.
thanks for your suggestions, unfortunately I've not had luck with either! It's odd because it only happens with this project, and not other projects in VS 2013 (some core C#/MVC projects, the highlighting/intellisense/debugging works fine for razor, it just seems to be this project!) and doubly odd because this project works fine in VS 2012!
I also ran into this problem- looks like you never received a satisfactory answer, so I'll tell you what worked for me. This will probably benefit others who stumble on this (because I'm sure you've moved on from this one a long time ago!)...
Simply delete the solution's .suo file. This is the local settings file and it impacts a whole bunch of Visual Studio behavior. So, when you see something quirky deleting this file can often help. It solved the razor view syntax highlighting issue that I was seeing on my system. I even tried resetting the settings to VC# settings and that didn't work, so this was the ultimate "reset" that worked.
I had this problem and had to go to Tools\options then select Text Editor\All Languages. on there make sure Auto List Members is checked and not boxed. do the same for hide advanced members and Parameter information. Then check the same under C#. they have to have check marks. one this is done. close and restart VS.
it should work. Resharper does this when a trial ends or is uninstalled.
Well, it didn't work for me any of the above suggestions. I have changed in Tools-Options, deleted .suo file, restarted the VS2013 and still doesn't work.
My VS2013 razor views work fine for any native MVC projects, but not for Umbraco.
One thing I've noticed that the views I create in the back-end umbraco on a browser don't show on a solution explorer unless I click on show all files. Not sure if this has to anything with it.
When creating the files in the backoffice they will never be included into the Visual Studio solution automatically. You will always need to right click on them (after you've done show all and refreshed) and click "Include in project".
I've sometimes found that after doing this I need to open the file and then close it, then re-open the file before intellisense kicks in.
Worked for me too... thanks Nik (and Alex for asking). Previously I tried deleting my suo file, updating options, I even completely re-installed a fresh code base and database, nothing was working. My "gotcha" was that I checked to see if the /Views folder was included in the project, but not the file itself.
No razor intellisense, syntax highlighting or debugging in Visual Studio 2013 Preview/Umbraco 6.1
I'm desperately hoping someone here can help me with this as I can't seem to find ANYTHING to help.
I created a Umbraco 6.1 project in Visual Studio 2012, and everything was working fine. I had intellisense, debugging and syntax highlighting.
I installed Visual Studio 2013 Preview and opened the previously created project, and I now have no syntax highlighting or debugging in razor.
I initially thought it was ReSharper's fault (version 8.0), so I uninstalled it and reset VS back to factory settings. Nothing. I also noticed when I uninstalled that, that the intellisense (the only thing I still had for razor) had disappeared too. So I can only assume, that without ReSharper, I have no intellisense, syntax highlighting or debugging for razor.
I also installed the ASP.NET and Web Tools for Visual Studio 2013 Preview Refresh Update incase that helped. Nothing. I have tested whether it all works for razor in standard web application, and it does, so it's something to do with this specific Umbraco project.
Can anyone help with this?
Thanks.
Hi Justin,
The only suggestions I have are, check your cshtml files are included in your solution (has caught be out before) and close down vs.net and delete your suo file, then reopen.
Jeavon
Also, make sure both the web.config at the root and the one inside the views folder are included in your solution
I had this problem and had to go to Tools\options then select Text Editor\All Languages. on there make sure Auto List Members is checked and not boxed. do the same for hide advanced members and Parameter information. Then check the same under C#. they have to have check marks. one this is done. close and restart VS.
it should work. Resharper does this when a trial ends or is uninstalled.
Keith
Hi Guys,
thanks for your suggestions, unfortunately I've not had luck with either! It's odd because it only happens with this project, and not other projects in VS 2013 (some core C#/MVC projects, the highlighting/intellisense/debugging works fine for razor, it just seems to be this project!) and doubly odd because this project works fine in VS 2012!
I also ran into this problem- looks like you never received a satisfactory answer, so I'll tell you what worked for me. This will probably benefit others who stumble on this (because I'm sure you've moved on from this one a long time ago!)...
Simply delete the solution's .suo file. This is the local settings file and it impacts a whole bunch of Visual Studio behavior. So, when you see something quirky deleting this file can often help. It solved the razor view syntax highlighting issue that I was seeing on my system. I even tried resetting the settings to VC# settings and that didn't work, so this was the ultimate "reset" that worked.
Keith said:
Worked for me, cheers Keith
Jason
Well, it didn't work for me any of the above suggestions. I have changed in Tools-Options, deleted .suo file, restarted the VS2013 and still doesn't work.
My VS2013 razor views work fine for any native MVC projects, but not for Umbraco.
One thing I've noticed that the views I create in the back-end umbraco on a browser don't show on a solution explorer unless I click on show all files. Not sure if this has to anything with it.
Thanks
Hi Alex,
When creating the files in the backoffice they will never be included into the Visual Studio solution automatically. You will always need to right click on them (after you've done show all and refreshed) and click "Include in project".
I've sometimes found that after doing this I need to open the file and then close it, then re-open the file before intellisense kicks in.
Nik
Bingo - that worked. Thank you Nik. Only closed/opened once.
Worked for me too... thanks Nik (and Alex for asking). Previously I tried deleting my suo file, updating options, I even completely re-installed a fresh code base and database, nothing was working. My "gotcha" was that I checked to see if the /Views folder was included in the project, but not the file itself.
FOR Vs2015 Delete the files under %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
is working on a reply...