Nenad
Nenad

Reputation: 26647

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.

Upvotes: 4

Views: 2422

Answers (1)

Amadeus Sanchez
Amadeus Sanchez

Reputation: 2565

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.

Upvotes: 1

Related Questions