TypeScript on Visual Studio 2012 Express

I'm having trouble getting TypeScript to work with Visual Studio 2012. Does anyone know if it will only be installed on the full version of VS2012? (I have VS 2012 Express for the Internet and VS 2012 Express for the desktop).

I tried all the offers that I could find on this site, and still have no luck. Both VS and TypeScript are installed correctly, but I do not see TypeScript projects or new elements in VS 2012 Express for Web.

+6
source share
2 answers

A TypeScript project likes to hide directly in the Visual C # or Visual Basic node of the VS 2012 Express Web Design Template Tree. Just click on one of them, scroll to the very bottom and check if there are any:

TypeScript project under Visual C # node

+5
source

In particular, TypeScript does not have its own type of project at the moment, so in reality there are only templates that currently use other types of projects (for example, C #).

It's even harder to find an ASP.NET MVC 3 TypeScript template. To do this, select the "Visual C # / Web / ASP.NET MVC 3 Web Application" template, then when you click "OK", you will get an option for the TypeScript template (see the screenshot below).

In addition, since there is no source project system for TypeScript, its creation steps are simply Exec tasks in the C # project files at this time. those. in csproj you will see an action, for example:

<Target Name="BeforeBuild"> <Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\0.8.0.0\tsc&quot; @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" /> </Target> 

enter image description here

+1
source

Source: https://habr.com/ru/post/928091/


All Articles