How to use typescript in my asp.net website?

Topics: General
Oct 3, 2012 at 2:04 PM

Hi,

How to use typescript in asp.net website?

can i replace typescript files with my old javascript file?

If i want to migrate my old Asp.net web application to typescript what are the changes i need to do?

 

Thanks

Oct 4, 2012 at 12:51 AM

The MSI includes an ASP.NET 3 MVC template for TypeScript.  This shows how to integrate TypeScript into an ASP.NET site.  Note that the browser can't run TypeScript.  When you build the project your TypeScript is compiled to JavaScript code, and it is still the JavaScript files that the browser should reference and execute.

Oct 6, 2012 at 11:49 AM

*.aspx and *.ascx are built automatically by ASP.NET, and so should *.ts.

Everybody who likes the idea, please vote for it: http://typescript.codeplex.com/workitem/122 (Dynamic compilation of .ts-files in ASP.NET)!