本文介绍了在Visual Studio中创建一个新的TypeScript项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

如何开始在Visual Studio中编写TypeScript项目?创建新项目时,没有其他选择.我安装了Visual Studio 2012并附带了TypeScript

How do I start writing TypeScript projects in Visual Studio? There's no option for it when I create a new project. I have Visual Studio 2012 installed along with the TypeScript add on

推荐答案

我刚刚找到了解决方案:手动安装VS-Extension.

I just found the solution: Manual installation of the VS-Extension.

以某种方式,未安装VS-Extension.您可以手动执行.在C:\Program Files (x86)\Microsoft SDKs\TypeScript\0.8.0.0中有一个名为TypeScriptLanguageService.vsix.vsix文件.尝试运行此文件.它应该安装TypeScript扩展.

In some way, the VS-Extension is not getting installed. You can do it manually. There is a .vsix file located in C:\Program Files (x86)\Microsoft SDKs\TypeScript\0.8.0.0 called TypeScriptLanguageService.vsix.Try to run this file. It should install the TypeScript extension.

如果您正在运行基于x86的系统,请尝试查看C:\Program Files\Microsoft SDKs\TypeScript\0.8.0.0.

If you are running an x86-based system, try to look at C:\Program Files\Microsoft SDKs\TypeScript\0.8.0.0.

为我工作.现在,我可以创建TypeScript项目,它会在Visual Studio扩展列表中列出.

Worked for me. Now I can create TypeScript projects and it is listed in the Visual Studio extension list.

请注意,较新版本的TypeScript删除了文件夹0.8.0.0.您可能会在C:\Program Files (x86)\Microsoft SDKs\TypeScript中找到.vsix文件.

Note that the newer versions of TypeScript dropped the folder 0.8.0.0. You may find the .vsix file in C:\Program Files (x86)\Microsoft SDKs\TypeScript.

这篇关于在Visual Studio中创建一个新的TypeScript项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-09 02:56