{"id":2774,"date":"2011-01-12T11:07:00","date_gmt":"2011-01-12T11:07:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2011\/01\/12\/how-to-get-razor-syntax-support-in-visual-studio-2010\/"},"modified":"2011-01-12T11:07:00","modified_gmt":"2011-01-12T11:07:00","slug":"how-to-get-razor-syntax-support-in-visual-studio-2010","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/how-to-get-razor-syntax-support-in-visual-studio-2010\/","title":{"rendered":"How to get Razor syntax support in Visual Studio 2010"},"content":{"rendered":"<p><strong>What&rsquo;s Razor?<br><\/strong>Razor is a simple-syntax view engine that is released as part of ASP.NET Model View Controller (MVC) 3. Read more about the syntax on <a href=\"http:\/\/weblogs.asp.net\/scottgu\/archive\/2010\/07\/02\/introducing-razor.aspx\">ScottGu&rsquo;s blog<\/a> or on <a href=\"http:\/\/www.asp.net\/mvc\">ASP.NET <br><\/a><br><strong>How can I get Razor syntax support in Visual Studio 2010?<br><\/strong>It&rsquo;s simple. Install the MVC3 RTM bits via <a href=\"http:\/\/www.microsoft.com\/web\/gallery\/install.aspx?appid=MVC3\">Web Platform Installer<\/a> or <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=208140\">download the installer directly<\/a> to run it yourself.&nbsp;<br>Both the options run AspNetMVC3Setup.exe and it installs Visual Studio 2010&nbsp;support for Razor syntax in addition to other components bundled in the exe.<\/p>\n<p><strong>What does ASPnetMVC3Setup.exe install for Visual Studio to support the syntax?<br><\/strong>The ASP.NET MVC 3 installer includes the following components. Components in bold add the support.<\/p>\n<ul>\n<li>ASP.NET MVC 3 runtime components<\/li>\n<li>ASP.NET MVC 3 Visual Studio 2010 tools<\/li>\n<li>ASP.NET Web Pages run-time components<\/li>\n<li><strong>ASP.NET Web Pages Visual Studio 2010 tools<br><\/strong>This component is responsible to add support for Razor syntax. It also installs Razor (VB and C#) Templates for Websites.<\/li>\n<li>Microsoft Package Manager for .NET (NuGet)<\/li>\n<li><strong>An update for Visual Studio 2010 that enables support for Razor syntax. <br><\/strong>It&rsquo;s an update for Visual Studio 2010 that enables support for ASP.NET webpages that are developed by using Razor syntax in websites and in web projects. <\/li>\n<\/ul>\n<p><strong>Known issues<br><\/strong>Please check the <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=208140\">MVC3 release notes<\/a> from <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=208140\">here<\/a>&nbsp;for a list of known issues.<\/p>\n<p><br>You might encounter the following issues if you install Visual Studio 2010 <strong>SP1 Beta<\/strong> + MVC 3 RTM.&nbsp;<\/p>\n<ul>\n<li>Squigglies are shown for &lsquo;WebSecurity&rsquo;&nbsp;when I Open Account\/Login.cshtml <\/li>\n<li>Database.open shows squigglies when I opened a Bakery site in Visual Studio using the VS button in WebMatrix, when build the error goes away.<\/li>\n<li>Running format document on the default template&#8217;s ChangePassword in VB causes a compilation problem because it formats the &lt;li&gt; elements incorrectly to the same line as End if<\/li>\n<li>Language intelliSense is not automatically shown when typing inside html attribute where html intellisense is already up. For example, &lt;img src=&rdquo;@<\/li>\n<\/ul>\n<p>Workaround for the above four issues would be to uninstall Visual Studio 2010 <strong>SP1 Beta<\/strong> or install Visual Studio 2010 SP1 RTM (whenever it&rsquo;s released).<\/p>\n<p>Hope this Helps,<br>Deepak Verma<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What&rsquo;s Razor?Razor is a simple-syntax view engine that is released as part of ASP.NET Model View Controller (MVC) 3. Read more about the syntax on ScottGu&rsquo;s blog or on ASP.NET How can I get Razor syntax support in Visual Studio 2010?It&rsquo;s simple. Install the MVC3 RTM bits via Web Platform Installer or download the installer [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7385,7383,7384,7323],"class_list":["post-2774","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-asp-net-mvc3","tag-deepak-verma","tag-razor","tag-visual-studio-2010"],"acf":[],"blog_post_summary":"<p>What&rsquo;s Razor?Razor is a simple-syntax view engine that is released as part of ASP.NET Model View Controller (MVC) 3. Read more about the syntax on ScottGu&rsquo;s blog or on ASP.NET How can I get Razor syntax support in Visual Studio 2010?It&rsquo;s simple. Install the MVC3 RTM bits via Web Platform Installer or download the installer [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=2774"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2774\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=2774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=2774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=2774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}