简体   繁体   中英

Visual Studio Code - Add Reference Errors

When I open Visual Studio 2013 C# project in Visual Studio Code (v 0.1.0) editor, download link here , I'm getting dozen of errors:

The type 'Object' is defined in the assembly that is not referenced. You must add reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'. [my c# project name]

Project uses .NET Framework 4.5 . mscorelib.dll automatically referenced when project is opened in Visual Studio 2013 is Version=4.0.0.0 .

Is there a way to configure VS2013 project, so that Visual Studio Code recognizes references and Framework version properly?

System: Windows, no Visual Studio 2015 components installed.

According this StackOverflow answer you can try the following to solve your issue:

I was able to fix this by issuing an update-package -reinstall command at the Package Manager Console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM