In this article I will walk you through the steps demonstrating how to use TypeScript in your ASP.NET MVC project.
1 — What is TypeScript?
To learn more about TypeScript you can visit the official website by clicking on this link:
2 — Create a directory for your TypeScript code
In your MVC solution you will need to create a folder where all of your TypeScript files will reside. In this example I am going to call the folder “TSScripts” (You can name this folder anything you would like).
I created the “TSScripts” folder at the root directory of my “TypeScriptProject” project. Below is a screen shot of the folder structures so far.
Now we need to create the appScripts folder in our root project directory. This is where the .js files will be outputted to when the TypeScript compiler is done compiling the code.