gpt4 book ai didi

asp.net-mvc-4 - 如何编辑 Typescript 1.4 "specified task executable location"?

转载 作者:搜寻专家 更新时间:2023-10-30 20:35:07 25 4
gpt4 key购买 nike

我正在更新项目以使用所有内容的最新版本。我刚刚将 MVC 4 项目从 .Net 4.0 更新到 .Net 4.5.1。然后我更新了 nuget 包(卸载了一些,然后重新安装,因为它们基于 .Net 4.0)。之后,我将 Typescript 的机器版本更新为 1.4,这时一切都很顺利。只是两个简单的错误。第一个:

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”

 <TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>

第二个错误:

The specified task executable location "C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\1.4\tsc.exe" is invalid.

所以我试图找到设置路径的位置,并取出试图在第二个文件夹“1.4”中查找的位置。路径应该是:

C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\tsc.exe

我似乎无法找到它的设置位置,以及如何更改它。

我试过:

重新安装和修复 Typescript 1.4 并到处搜索设置路径的位置。

我读过的答案包括检查“检查您的 PATH 环境变量”。我找不到在哪里更改它,此时我的大脑很生气。

我正在使用 Visual Studio 2013 Ultimate。谢谢。

最佳答案

我遇到了同样的问题。我发现它的唯一方法是在 C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4 中创建一个新文件夹“1.4”,然后复制到“C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4**” 1.4**' 父目录中的所有文件。

愚蠢的解决方案,但对我有用。

关于asp.net-mvc-4 - 如何编辑 Typescript 1.4 "specified task executable location"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30142996/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com