如何编辑Typescript 1.4“指定任务可执行位置"? [英] How to edit the Typescript 1.4 "specified task executable location"?

查看:19
本文介绍了如何编辑Typescript 1.4“指定任务可执行位置"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新一个项目以使用所有内容的最新版本.我刚刚将 MVC 4 项目从 .Net 4.0 更新到 .Net 4.5.1.然后我更新了 nuget 包(卸载了一些,然后重新安装,因为它们基于 .Net 4.0).之后,我将 Typescript 的机器版本更新为 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:

您的项目文件使用了不同版本的 TypeScript 编译器和当前安装在这台机器上的工具.没有编译器位于 C:Program Files (x86)MicrosoftSDKsTypeScript1.41.4 sc.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 SDKsTypeScript1.41.4 sc.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)Microsoft SDKsTypeScript1.41.4 sc.exe"无效.

The specified task executable location "C:Program Files (x86)Microsoft SDKsTypeScript1.41.4 sc.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)Microsoft SDKsTypeScript1.4 sc.exe

C:Program Files (x86)Microsoft SDKsTypeScript1.4 sc.exe

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

I can't seem to find where this is set, and how I can change it.

我试过了:

重新安装并修复 Typescript 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 Ultimate.谢谢.

I'm in Visual Studio 2013 Ultimate. Thanks.

推荐答案

我遇到了同样的问题.我发现它的唯一方法是在 C:Program Files (x86)Microsoft SDKsTypeScript1.4 创建一个新文件夹 '1.4' 并复制到 'C:Program Files (x86)Microsoft SDKsTypeScript1.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 SDKsTypeScript1.4 and copy to 'C:Program Files (x86)Microsoft SDKsTypeScript1.4**1.4**' all files from parent directory.

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

Stupid solution, but it works for me.

这篇关于如何编辑Typescript 1.4“指定任务可执行位置"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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