如何获得打字稿与Visual Studio 2013的工作 [英] How to get TypeScript working with Visual Studio 2013

查看:256
本文介绍了如何获得打字稿与Visual Studio 2013的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载插件打字稿为Visual Studio,安装了它,重新启动我的电脑。我也安装了VS 2013防爆preSS Web和VS 2013终极preVIEW但打字稿仅仅是不存在的。有没有文件模板,没有项目模板,什么都没有。

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.

什么是你有打字稿安装正确的/在Visual Studio中出现的各种方式?我曾尝试喜欢寻找 VSIX 文件开放许多不同的东西(但该文件并不在这个版本打字稿的存在 - 除非他们已经搬到地方在别的) ,我已经试过下载和安装Web要点 - 但他们的网站上说,他们不再支持打字稿因为很明显VS本身现在支持它。我也卸载/重新安装打字稿 - 多次

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.

我甚至尝试下载旧版本的打字稿0.8.3,但每一个环节,我发现只是重定向我新下载页面0.9.1。

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.

没有什么工作。

我如何与打字稿工作的或者的VS 2013防爆preSS用于Web的的VS 2013终极preVIEW?

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.

推荐答案

我发现了一个问题,在这里的,几乎工作了答案。但是,改变周围的一些事情后,我能得到这个工作。这些步骤从原始的,其中可以发现<稍微偏离href=\"http://stackoverflow.com/questions/14510511/how-can-i-install-typescript-with-visual-studio-2010\">here.

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. 关闭Visual Studio中。

  2. C ++可再发行的Visual Studio 2012更新3 x86版(即使在x64平台上运行; tsc.exe是一个x86应用程序)

  3. 下载打字稿的Visual Studio 2012版本0.9.0.1

  4. Uncom preSS /解压缩 MSI 文件使用A HREF一个临时位置<=HTTPS://$c$c.google.com/p /lessmsi/\">https://$c$c.google.com/p/lessmsi/

  5. 复制目录 SourceDir \\微软的SDK \\打字稿
    的%ProgramFiles(x86)的%\\微软软件开发工具包

  6. 复制目录 SourceDir \\ VS11_EXTENSIONS_DIR \\打字稿
    的%ProgramFiles(x86)的%\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\扩展\\微软

  7. 的两个文件复制在 SourceDir \\ VS11 文件夹( file.ts newtypescriptfileitems.vsdir
    的%ProgramFiles(x86)的%\\\\微软的Visual Studio 12.0 \\ Common7 \\ IDE \\ NewFileItems

  8. 复制文件夹 SourceDir \\的MSBuild \\微软\\ VisualStudio的\\ 12.0 \\打字稿
    的%ProgramFiles(x86)的%\\的MSBuild \\微软\\ VisualStudio的\\ 12.0

  9. 修改PATH环境变量以包括的%ProgramFiles(x86)的%\\微软的SDK \\打字稿

  10. 启动Visual Studio。

  1. Close Visual Studio.
  2. Install Visual C++ Redistributable for Visual Studio 2012 Update 3 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 https://code.google.com/p/lessmsi/
  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.

导致我能够在Visual Studio 2013 preVIEW和网络的Visual Studio 2013前preSS全打字稿支持这些工作的具体步骤。非常感谢去谁张贴这个答案的花花公子。

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.

这篇关于如何获得打字稿与Visual Studio 2013的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆