0

I'm trying to create a typescript project.

Very simply I want my ts files to turn into js files when I build.

I'm using VisualStudio 2015 Enterprise.

I created a Blank WebApplication.

I tried to install Typescript but it says typescript 1.6.3 has already been preinstalled.

When I create a ts file nothing happens.

When I right-click the project I do not have a Typescript tab in Project properties.

Where am I going wrong?

1
  • This should just work out of the box. What do the icons of the ts files look like? If you look at the properties of a ts file what do you see? Commented Nov 18, 2015 at 20:23

1 Answer 1

4

Make sure you create a TypeScript web project instead of a blank web project in the new project dialog:

enter image description here

When you build the project, VS will compile your ts files into js files. But you won't see them unless you turn on 'show all files' in the solution explorer:

enter image description here

That should be all you have to do. You can configure advanced properties of the build by right clicking on the project file and selecting project properties:

enter image description here

Hope that's enough to get you started.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.