刚刚将Typescript扩展安装到VS2012,然后按照Install TypeScript for Visual Studio 2012和tutorial调用编译器:
> tsc greeter.ts
但是当我试图编译的时候.ts文件我应该在哪里键入:tsc greeter.ts
?在VS命令行和windows控制台中try 过它,总是会得到消息tsc不被识别为命令(Command "tsc" is not valid.
).
刚刚将Typescript扩展安装到VS2012,然后按照Install TypeScript for Visual Studio 2012和tutorial调用编译器:
> tsc greeter.ts
但是当我试图编译的时候.ts文件我应该在哪里键入:tsc greeter.ts
?在VS命令行和windows控制台中try 过它,总是会得到消息tsc不被识别为命令(Command "tsc" is not valid.
).
确保你有,
C:\Program Files (x86)\Microsoft SDKs\TypeScript\0.8.0.0
或
C:\Program Files\Microsoft SDKs\TypeScript\0.8.0.0
在你的路上.如果没有,试着重新启动CMD.EXE
,看看是否有新的副本出现.如果失败,请try 手动将上述选项之一添加到路径中.