1

I am using the community edition Visual Studio 2015. I want to setup the environment to use TypeScript to be used in an asp.net webforms application. I see lots of guidance in doing it using Visual Studio Code but not in Visual Studio. I was following the methods given at http://mobilemancer.com/2015/08/14/getting-started-typescript-1-5-in-visual-studio-2015/ However I don't see the option for NPM Configuration file under DNX. I see it only under C#, so probably it is server side while DNX represents client side. I have installed Visual Studio 2015 Update 3 as well as .Net Core 1.0

Thanks

1
  • DNX and TypeScript 1.x? Are you really sure you want to use such old stuffs? Especially DNX is obsolete, when everyone uses .NET Core now. Don't use that term any more for all sake. Commented Feb 22, 2017 at 19:08

1 Answer 1

3

It's actually pretty straight forward:

  1. Install TypeScript from Tools -> Extension and Updates
  2. Add tsconfig.json at the root of the web form project. Refer to this link for more info on the TypeScript configuration file.
  3. Add TypeScript file (*.ts) to your application
  4. Add link to the transpiled JavaScript file in your page. You can define where the JavaScript file is created in the tsconfig.json file.

If you need to use NPM, then your original reference link works just fine.

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

1 Comment

Thanks a lot. Worked like a charm!

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.