在Visual Studio

时间:2017-04-10 16:38:23

标签: typescript visual-studio-2017

在尝试构建TypeScript项目时,我在Visual Studio中看到以下错误。

The specified task executable "tsc.exe" could not be run. Could not load file or assembly 'System.IO.FileSystem, Version=4.0.1., Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

这只发生在安装TS 2.3 RC,然后卸载,然后尝试修复我的安装之后。修复似乎没有做任何事情。

1 个答案:

答案 0 :(得分:0)

有一些.dll在卸载过程中无法移除并导致问题。要解决此问题,请删除.dll中的所有C:\Program Files (or X86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript并尝试再次修复VS.

这应该会导致安装VS版本的TypeScript基本版本(在VS 2015的情况下为1.8)。然后,您可以在其上安装所需的TS版本。

相关问题