title: Error when declaring and using a string
body: <p>How can I reference a variable that I have created in a <code>MVC</code> <code>Razor</code> <code>View</code>?</p>
  
  <p>I have declared a variable as follows:</p>
  
  <pre><code>@string bootstrapCSSPath = @Path.Combine(Model.pathToResourceDirectory, "bootstrap/css/bootstrap.min.css");
  </code></pre>
  
  <p>Now I wish to use this variable in html.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;link href="@bootstrapCSSPath" rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>When the <code>View</code> is displayed, the following error is shown:</p>
  
  <blockquote>
    <p>Compiler Error Message: CS1525: Invalid expression term 'string'</p>
  </blockquote>