title: Recommended way to add Typescript to an existing asp.net 4 Webforms project
body: <p>I am working on quite an old asp.net 4.0 <code>Webforms</code> project in <code>Visual Studio 2015.</code></p>
  
  <p>I want to start using TypeScript instead of Javascript for some of the client side code. I have used TypeScript in other projects outside of Visual Studio (e.g. using Visual Studio Code, and the node tools such as npm, gulp etc)</p>
  
  <p>Now, I am trying to see how to use the TypeScript in Visual Studio, and see quite a few conflicting posts, and various versions of TypeScript / VS referred to.</p>
  
  <p>I have added a TypeScript file to VS, and VS reported it now supporting Typescript and added a few lines to the project file. A have also added the VS extension for Typescript (version 2)</p>
  
  <p>I build my project and get the .js and .map files. The files are in <code>CommonJS</code> format so I need to either load these or convert using a some sort of bundling. </p>
  
  <p>This is where I don't know where to go. Also, I have read conflicting reports on how to configure the Typescript (e.g whether or not Visual Studio will use a <code>tsconfig.json</code> file)</p>
  
  <p>In non asp.net projects I have use <code>gulp</code> with the <code>gulp-typescript</code> <code>browserify</code> etc gulp plugins.</p>
  
  <p>Do I do the same thing in my asp.net project, or is there some other way to bundle and convert the JS to browser usable code? </p>
  
  <p>If I use the gulp method, I assume this then means I will now not be using the TS compiler installed via the Visual Studio plugin (so what is the point of this if it emits CommonJS formatted cod that I can't use in the browser?</p>
  
  <p>Thanks in advance for any suggestions here!</p>