title: How to reference a TypeScript file from a web page
body: <h2>Preamble</h2>
  
  <p>I can get this to work but I'm not sure I'm using the technology as Microsoft intended.</p>
  
  <h2>Context</h2>
  
  <p>A web page can refer to a JS file containing JavaScript by means of a reference tag like this:</p>
  
  <pre><code>&lt;script src="Scripts/jquery.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In the above example, the JS file is part of a Visual Studio ASPX.NET project. It was both placed in the project Scripts folder and added to the project by Nuget.</p>
  
  <p>Having added a Typescript file to an existing ASP.NET project, I would like to use the generated JS from an ASPX web page. </p>
  
  <p>Instructing Solution Explorer to show all files reveals that the expected JS file has indeed been generated on the expected path.</p>
  
  <h2>Am I using this correctly? What is the recommended method?</h2>
  
  <p>There are a couple of ways one might go about things.</p>
  
  <ul>
  <li>Refer directly to the generated JS file </li>
  </ul>
  
  <p>I was concerned that files not part of a project would be excluded from a web server deployment, but have since determined that they <em>are</em> deployed. </p>
  
  <ul>
  <li>Add some kind of reference to the Typescript file</li>
  </ul>
  
  <p>It would be great if there were some syntax for a reference to the TS file that will be transformed into a script tag referring to the generated JS file. Alas, if this exists it's not very well publicised.</p>