如何编辑打字稿1.4 QUOT;指定的任务可执行文件的位置和QUOT ;? [英] How to edit the Typescript 1.4 "specified task executable location"?
问题描述
我更新项目中使用的一切的最新版本。
我刚刚更新从.NET 4.0的MVC 4项目.NET 4.5.1。然后,我更新的NuGet包(卸载一些,并重新安装,因为它们是基于.NET 4.0)。后记,我打字稿的机器升级到了1.4,这时候它全部命中风扇。只是两个简单的错误。第一:
I'm updating a project to use the latest versions of everything. I just updated the MVC 4 project from .Net 4.0 to .Net 4.5.1. I then updated the nuget packages(uninstalling some, and re-installing because they were based on .Net 4.0). Afterwords, I updated the machine version of Typescript to 1.4, that's when it all hit the fan. Just two simple errors. The first:
您的项目文件使用不同版本的打字稿编译
和工具比目前本机上安装。没有编译器
被发现在C:\\ Program Files文件(x86)的\\微软
软件开发工具包\\打字稿\\ 1.4 \\ 1.4 \\ tsc.exe。您可能能够解决这个问题
在您的项目文件改变的元素。
Your project file uses a different version of the TypeScript compiler and tools than is currently installed on this machine. No compiler was found at C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe. You may be able to fix this problem by changing the element in your project file.
我确信这是设置为1.4
I made sure this was set to "1.4"
<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
第二个错误:
指定的任务可执行文件的路径C:\\ Program Files文件
(x86)的\\微软的SDK \\打字稿\\ 1.4 \\ 1.4 \\ tsc.exe是无效的。
The specified task executable location "C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe" is invalid.
所以我试图找到所在的路径设置,并取出其中试图在第二个文件夹1.4来看待。路径应该是:
So I attempted to locate where the path was set and take out where is was trying to look in a second folder "1.4". The path should be:
C:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.4 \\ tsc.exe
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\tsc.exe
我似乎无法找到这何处设置,以及我怎样才能改变它。
I can't seem to find where this is set, and how I can change it.
我试过:
重新安装和维修打字稿1.4和所在的路径设置搜索无处不在。
Reinstalling and Repairing Typescript 1.4 and searching everywhere for where the path is set.
我读过,包括检查答案检查PATH环境变量。我找不到在哪里改变这种状况,在这一点上我的大脑是生气了。
I've read answers that include checking the "Check your PATH environment variable." I can't find where to change that, and at this point my brain is angry.
我在Visual Studio 2013旗舰版。谢谢你。
I'm in Visual Studio 2013 Ultimate. Thanks.
推荐答案
我有同样的问题。只有这样,我发现它只是位于C创建一个新的文件夹'1.4':\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.4和复制到C:\\ Program Files文件(x86)的\\微软的SDK \\打字稿\\ 1.4 ** 1.4 **'都是从父目录中的文件。
I had the same problem. Only way I found it just create a new folder '1.4' at C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4 and copy to 'C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4**1.4**' all files from parent directory.
愚蠢的解决方案,但它为我工作。
Stupid solution, but it works for me.
这篇关于如何编辑打字稿1.4 QUOT;指定的任务可执行文件的位置和QUOT ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!