title: MVC Styles and Scripts do not exist in the current context
body: <p>As a learning exercise, I've created a blank MVC4 Application and I'm building a blog-type website with it.</p>
  
  <p>I'm learning that this probably wasn't the best idea... I've copied the <code>Content</code> and <code>Views\Shared</code> folders into my blog project from another one I created with the default stuff, but the following lines are giving me errors:</p>
  
  <pre><code>@Styles.Render("~/Content/css")
  @Scripts.Render("~/bundles/modernizr")
  </code></pre>
  
  <p>Both underlined red in my _Layout.cshtml file, the error is:</p>
  
  <blockquote>
    <p>The name  does not exist in the current context</p>
  </blockquote>
  
  <p>So I went back to my "default" project and checked where those come from by hovering over them. The tooltip said</p>
  
  <pre><code>class System.Web.Optimization.Styles
  class System.Web.Optimization.Scripts
  </code></pre>
  
  <p>So I went through and installed the Web Optimization Framework as per <a href="https://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4-app">this question</a> but it hasn't fixed the problem.</p>
  
  <p>The project builds n all, but no styles are applied and I'm 100% sure anything that the script controls isn't working either...</p>
  
  <p>Can anyone help me fix this?</p>