Aetherix
Aetherix

Reputation: 2260

NuGet: Failed to add reference to 'mscorlib'

I'm trying to add a .NET 4 libary to a .NET 4.5.1 solution with NuGet. This should generate the following entry in packages.config and reference the dll.

<package id="MyCompany.MyApi" version="2.0.1-alpha0680" targetFramework="net451" />

However, the error that I'm getting is:

Error: Failed to add reference to 'mscorlib'.

What does work is the following:

But obviously this is not my preferred solution.

Edit: This is not a duplicate of the referenced question. This issue also occurs when I create a blank console application. So there isn't even a packages folder yet to clear.

Upvotes: 0

Views: 1172

Answers (1)

Aetherix
Aetherix

Reputation: 2260

After installing update 5 of Visual Studio 2013 the issue was solved. If someone knows why it would be nice to enrich this answer. Or create a new answer and I'll accept it.

Upvotes: 1

Related Questions