Home > Visual Studio > Visual Studio 2010 Razor Intellisense Not Working

Visual Studio 2010 Razor Intellisense Not Working

For example, the above four issues would be to uninstall Visual Studio 2010 SP1 Beta or install Visual Studio 2010 SP1 RTM (whenever it’s released). This time the solution to the problem are actually listed in those release-notes. How do you combine the elements in Sheldon's T-shirt? more hot questions question feed lang-cs about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation http://wiiemulator.net/visual-studio/intellisense-not-working-in-visual-studio-2012-razor.html

Edit: Also see Required updates on this page http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253815 share|improve this answer edited Nov 23 '12 at 16:44 answered Nov 23 '12 at 16:37 Amitd 3,14753874 add a comment| up vote Browse other questions tagged visual-studio-2010 asp.net-mvc-3 razor intellisense or ask your own question. I was already on SP1. –j0tt Feb 24 '12 at 13:53 add a comment| up vote 0 down vote Like BuildStarter mentionned, Click Open With and set the default to Razor Word to describe object that can be passed through How do I deal with my current employer not respecting my decision to leave? http://stackoverflow.com/questions/6133090/razor-intellisense-not-working-vs2010-sp1rel-mvc3-from-wpi-win7-x64

I have tried reinstalling MVC 2, MVC 3, and Visual Studio 2010 Ultimate but intellisense will still not work for Razor. My install steps were as follows: Install Visual Studio Professional. I've nugetted microsoft-web-helpers successfully. Thanks in advance!

  1. What happened to me is that the web.config file got checked in wrong and was no longer Unicode UTF8.
  2. When VS 2010 opened the solution, it checks the web.config file for the appsettings: Since the file couldn't be read by normal means,
  3. The editor was associated with cshtml, it just wasn't functioning correctly. –j0tt Feb 24 '12 at 13:51 add a comment| up vote 0 down vote I was experiencing the same issue.
  4. Try our newsletter Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
  5. I do not have ReSharper installed.
  6. This is stated in the release-notes, but nobody usually reads those.

I do not have resharper installed. The content you requested has been removed. I've recently found this solution: http://www.chrisvandesteeg.nl/…/embedding-pre-compiled-razor-views-in-your-dll and after reading this post I feel that I miss something here? Again check files must be opened in Razor Editor.

Your's will likely have many other entries that are required by your environment. 1 year ago Reply Fritz14 I have read your article and it's so helpful. asked 5 years ago viewed 3010 times active 3 years ago Upcoming Events 2016 Community Moderator Election ends in 6 days Blog How We Make Money at Stack Overflow: 2016 Edition Razor views are rendered normally. read this post here Did I cheat?

visual-studio-2010 asp.net-mvc-3 razor intellisense share|improve this question asked Jun 20 '11 at 11:36 pomarc 1,14321722 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted Try Privacy Statement| Terms of Use| Contact Us| Advertise With Us| CMS by Umbraco| Hosted on Microsoft Azure Feedback on ASP.NET| File Bugs| Support Lifecycle Can a spellcaster switch between multiple foci? You can download it from here: http://www.microsoft.com/download/en/details.aspx?id=23691 Good luck share|improve this answer answered Jan 6 '12 at 20:01 sam9291 1 2 Didn't he say he has VS 2010 SP1?\ –Dan

Browse other questions tagged visual-studio-2010 asp.net-mvc-3 razor intellisense or ask your own question. https://social.msdn.microsoft.com/Forums/en-US/d3b111ee-11f0-465a-88e8-013891022258/razor-intellisense-not-working-on-mvc-4-project-on-vs2010-tried-various-solutions?forum=vssetup After I uninstalled MVC2, MVC2 VS Tools, MVC4, and MVC4 VS Tools, leaving only MVC3 installed, it all worked again. Telekinesis resistant locks Why do Internet forums tend to prohibit responding to inactive threads? Which security measures make sense for a static web site?

If so, I recommend you copy your contents to a new project and start programming. http://wiiemulator.net/visual-studio/jquery-intellisense-visual-studio-2010.html Privacy statement Help us improve MSDN. How to get Razor intellisense for @model in a class library project ★★★★★★★★★★★★★★★ January 20, 2011 by Web Development Tools Microsoft // 5 Comments Share 0 0 Many of us follow To uninstall the plugin simply go to tools->extension manager and find the plugin Roslyn Language Services.

Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies You can run the project and everything works when built. You need to the explicitly state the version-numbers of the references in your web.config. this contact form It's working fine just like before.

It seems that project is already corrupt. up vote 13 down vote If you have MVC4 and MVC3 installed you need to add this to appsettings in web.config (in root and in Views folder) to use MVC3 When I hover over the underlined word it says "The name 'ViewBag' does not exist in the current context" even though I can build and run the project fine.

When I start a new MVC 3 project with the Razor engine and open a view, the Razor highlighting works but all of the key words are underlined with red squiggles

How not to lose confidence in front of supervisor? Utensil that forms meat into cylinders Locking plane for a long period What could cause humanity to migrate from land to water? What power do I have as a driver if my interstate route is blocked by a protest? So informative and I enjoyed reading it!

Do I need an Indie Studio Name? It started to happen randomly when I changed the view engine in the Views web.config to a custom one. Taxing GoFundMe Donations Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront? navigate here Add a new appSettings-entry for explicitly stating the version of WebPages to use: Then you have to edit your .csproj-file, where you need

Reply Astynax777 None 0 Points 19 Posts Re: Visual Studio 2010 Razor Intellisense Sep 13, 2011 02:21 PM|Astynax777|LINK VS 2010 SP1 also reappeared so I reinstalled that as well. The workaround would be to drop the attached web.config (rename the attached filefrom web.txt to web.config) to the root of the project. Very interesting. Should I be concerned about "security"?

I have done this and its working now. Make a suggestion Dev centers Windows Office Visual Studio Microsoft Azure More...