Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 250 Vote(s) - 3.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get TypeScript working with Visual Studio 2013

#1
I have downloaded Typescript plugin for Visual Studio, installed it and restarted my PC. I have also installed both VS 2013 Express for Web and VS 2013 Ultimate Preview but TypeScript is just not there. There are no File Templates, No Project Templates, nothing.

What are the various ways you have got TypeScript to install properly/show up in Visual Studio? I have tried many different things like looking for the `vsix` file and opening it (but that file does not exist in this version of TypeScript - unless they've moved it somewhere else), I've tried downloading and installing Web Essentials - but their website says that they no longer support TypeScript because apparently VS supports it natively now. I've also uninstalling/reinstalling TypeScript - many times.

I've even tried downloading the old version of TypeScript 0.8.3 but every single link I've found just redirects me to the new download page for 0.9.1.

Nothing works.

How do I get TypeScript working with _either_ VS 2013 Express for Web _or_ VS 2013 Ultimate Preview?

I've seen forum posts and comments all over the web where people say that it's working for them. I have no idea what'd going on.
Reply

#2
I found a question on here with an answer that almost worked. But after changing some things around I was able to get this working. These steps slightly deviate from the original, which can be found [here][1].

1. Close Visual Studio.
2. Install [Visual C++ Redistributable for Visual Studio 2012 Update 3][2] x86 version (even if running on an x64 platform; tsc.exe is an x86 application).
3. Download TypeScript for Visual Studio 2012 version 0.9.0.1
4. Uncompress/Extract the `MSI` file to a temporary location using

[To see links please register here]

5. Copy the directory `SourceDir\Microsoft SDKs\TypeScript`
to `%ProgramFiles(x86)%\Microsoft SDKs`
6. Copy the directory `SourceDir\VS11_EXTENSIONS_DIR\TypeScript`
to `%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft`
7. Copy the the two files in the `SourceDir\VS11` folder (`file.ts`, `newtypescriptfileitems.vsdir`)
to `%ProgramFiles(x86)%\\Microsoft Visual Studio 12.0\Common7\IDE\NewFileItems`
8. Copy the folder `SourceDir\MSBuild\Microsoft\VisualStudio\v12.0\TypeScript` to
`%ProgramFiles(x86)%\MSBuild\Microsoft\VisualStudio\v12.0`
9. Modify your path environment variable to include `%ProgramFiles(x86)%\Microsoft SDKs\TypeScript`
10. Start visual studio.

These exact steps led to me being able to work with full TypeScript support in Visual Studio 2013 Preview and Visual Studio 2013 Express for Web. A big thanks goes to the dude who posted this answer.


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#3
I searched for the version from step 3 of Spike's answer, which is apparently only any executable now. That lead me to MS's download of a slightly newer version at:

[TypeScript Download][1]


[1]:

[To see links please register here]


Once that was downloaded, I ran it and it offered to Repair or Uninstall TypeScript for VS 2012 and VS 2013. (I already had VS 2013 and 2013 Web Essentials installed but a project that uses TypeScript wouldn't load for me.)

Once the Repair was completed, then the project with TypeScript loaded just fine. So it might be worth it to just try repairing the install of TypeScript.
Reply

#4
I installed RC 3 on Visual Studio 2013 and everything was fixed.

[Visual Studio RC3 Download][1]


[1]:

[To see links please register here]

Reply

#5
According to the description <a href="http://visualstudiogallery.msdn.microsoft.com/fa041d2d-5d77-494b-b0ba-8b4550792b4d">here</a> you cannot have the standalone version and the update containing the component at the same time.

I have VS2012 and VS2013 on my system and had a lot of issues with the typescript support (or lack of) with VS2013.

So I uninstalled the typescript 1.0.0 tools for Visual Studio 2012 and re-applied Visual Studio 2013 Update 3.
It is now working fine but some details, the project migration were not done properly, I had to exclude the ts and js files, re-include the ts file and make sure that the build action is "TypeScript compile".


Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through