2017-04-10 97 views
0

嘗試構建TypeScript項目時,我在Visual Studio中看到以下錯誤。在Visual Studio中卸載TypeScript 2.3 RC後出現錯誤

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,然後卸載,然後試圖修復我的安裝後發生。修復似乎沒有做任何事情。

回答

0

有幾個.dll s在卸載過程中沒有被刪除,並導致問題。要解決此問題,請刪除C:\Program Files (or X86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript中的所有.dll,並嘗試再次修復VS。

這應該會導致安裝VS版本的TypeScript基本版本(在VS 2015中爲1.8)。然後,您可以在其上安裝您所需的TS版本。

相關問題