1. 程式人生 > >Use Typescript in asp.net MVC project.

Use Typescript in asp.net MVC project.

can project pin open query nuget create type drag

1. create an empty web project.

2. add a index.html file.

3. open nuget browser, and enter tag:typescript. choose jquery.typescript.definitelytyped and install it.

4. then in project folder/ scripts/typings/jquery/jquery.d.ts file will appear.

5. drag and drop the jquery.d.ts file in index.ts file. then we can use jquery schema such as $.

Use Typescript in asp.net MVC project.