How to add & build a typescript file in ASP.net web application under Visual studio 2012? -



How to add & build a typescript file in ASP.net web application under Visual studio 2012? -

after installing "typescript 1.0 tools visual studio 2012", typescript file can added & built under [html application typescript]. however, doesn't work under asp.net web application.

and, if add together .js file , rename .ts file, can't find typescriptcompile under build action. miss of import setting or need modify project file? thanks.

you need modify project file. here sample section:

<propertygroup condition="'$(configuration)' == 'debug'"> <typescripttarget>es5</typescripttarget> <typescriptremovecomments>false</typescriptremovecomments> <typescriptsourcemap>true</typescriptsourcemap> <typescriptmodulekind>amd</typescriptmodulekind> </propertygroup> <propertygroup condition="'$(configuration)' == 'release'"> <typescripttarget>es5</typescripttarget> <typescriptremovecomments>true</typescriptremovecomments> <typescriptsourcemap>false</typescriptsourcemap> <typescriptmodulekind>amd</typescriptmodulekind> </propertygroup> <import project="$(vstoolspath)\typescript\microsoft.typescript.targets" condition="exists('$(vstoolspath)\typescript\microsoft.typescript.targets')" />

asp.net typescript

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -