Partilhar via


TypeScript project in Visual Studio 2012

Introduction

Reading some forums, I have seen some people having troubles creating a new TypeScript project in Visual Studio 2012.

This is a quick tutorial to demonstrate the creation of a default project.

 

Hello TypeScript

Go to the Microsoft Download page and install the Visual Studio 2012 plugin. Some people do have some trouble to find the new project directly after installation, in that case restart your session.

If you still do not have the plugin installed, please go to "C:\Program Files (x86)\Microsoft SDKs\TypeScript\0.8.0.0"

Install the TypeScriptLanguageService.vsix to add the plugin to Visual Studio.

The TypeScript application project can be found under Visual C# and is called HTML Application with TypeScript.

 

After the project has been created your new project should look like this.

Clicking F5 will tell you that you need a Web.Config file to enable debugging.

 

Click Ok, the project should start in your browser and you are good to go!

What’s next?

I will try to make some tutorial concerning this new language and providing some examples combining Node.Js and TypeScript.

Until then enjoy developing :)

Comments

  • Anonymous
    October 02, 2012
    Great to know that there is a TypeScript project. However, why is it under "Visual C#"? It should be either under "JavaScript" or maybe "Other Project Types" or "Other Languages"...

  • Anonymous
    October 02, 2012
    It seems strange to me too, but TypeScript is currently in Alpha. I suppose they will change this in the next releases :)

  • Anonymous
    October 03, 2012
    was having trouble finding the project also, will try this approach when I get home, thanks for the tips!

  • Anonymous
    October 03, 2012
    Sadly this still doesn't work :'( Is there a specific version of VS2012 that I need to install? IS Visual Studio Express Web not good enough?

  • Anonymous
    October 04, 2012
    I've heard issues about VS Studio Express 2012. Have your tried using the vsix?

  • Anonymous
    November 05, 2012
    Thanks for this - yup, should have been under some other container than C#...had to refer to this blog post to find it. To those asking if VS Express Web is good enough, yes. I'm using VS Exp 2012 on this machine and thing are fine.

  • Anonymous
    February 06, 2013
    I just installed TypeScript, and I found the "HTML Application with TypeScript" project under "Other Languages" => "TypeScript".