创建NodeJS项目时Visual Studio System.ValueTuple程序集错误

时间:2018-08-16 20:40:48

标签: node.js visual-studio-2017

我在Visual Studio 2017 (15.8.0)上与.NET Framework 4.6.01055一起运行Windows 10 Enterprise 2015 LTSB 64-bit (10.0, Build 10240)

创建新的NodeJS项目后,例如:New->Javascript->Node.js->Blank Node.js Console Application

打开.njsproj文件时,出现此错误:

Microsoft Visual Studio

Could not load file or assembly 'System.ValueTuple, Version=4.0.2.0,
Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its
dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)

Visual Studio error

我已经卸载并重新安装了.NET Core和Visual Studio,但是却遇到了相同的错误。如何解决此错误?

1 个答案:

答案 0 :(得分:2)

安装.NET Framework 4.7.2为我解决了此问题