我尝试构建我的项目,但突然我在 visual studio 2013 上遇到错误,这就是我遇到的问题。自昨晚以来我没有做任何更改,但是当我今天跳上去时,似乎弹出了这个 https://gyazo.com/d170bdfc18f9896003978ced330a1c71
这是我在 VS 中得到的错误日志
Error 2 The "VsTsc" task could not be initialized with its input parameters. Arecibo
Error 1 The "ToolsVersion" parameter is not supported by the "VsTsc" task. Verify the parameter exists on the task, and it is a settable public instance property.
这也是我的项目文件,这是有道理的。起初它提示没有正确的 typescript 版本。
这是我的 cs proj 文件 http://pastebin.com/kA1yiwPQ , stackoverflow 不允许我超过一定数量的字符所以我不得不求助于 pastebin
最佳答案
尝试修复 TypeScript 工具包 - 转到 控制面板
> 程序和功能
,然后选择“TypeScript Tools for Microsoft Visual Studio 2015 xxxx”,选择 更改
,然后在安装程序中单击修复
。
我刚刚在 Visual Studio 2015 中遇到了这个问题,在重新创建一个全新的 ASP.NET Core 项目并进行修复后修复了它。
关于c# - 工具版本不支持 VsTsc 任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38220497/