How about ‘mscorelib’ reference?

Damir Dobric Posts

Next talks:



Follow me on Twitter: #ddobric




Sometimes, it is very difficult to understand what happen behind build process inside of complex solutions. You think you did all correct, and then you write simple line of, which is basically doing ‘nothing’ and then:

You must add a reference to assembly mscorlib, version=4.0.0

It means you miss everything in framework. The problem is that you probably are targeting multiple frameworks. For example, I have a project with following targets:


The error shown above is related to netstandard1.3. To fix this, you cannot simply go to project references and add reference to mscorelib.

Rather, you should add a reference to following package:


That will make your project compliable.

Posted Aug 25 2017, 07:33 AM by Damir Dobric
Filed under: is a .Net Community Blog powered by daenet GmbH.