Niranjan R
Niranjan R

Reputation: 21

Error when installing NUnit 3.9 in Visual Studio 13 with NuGet

I am trying to install NUnit 3.9 in Visual Studio 13 Professional, but I am facing the below mentioned error while installing:

'NUnit' already has a dependency defined for 'NETStandard.Library'.

How do I solve this issue?

enter image description here

Upvotes: 1

Views: 447

Answers (2)

Rob Prouse
Rob Prouse

Reputation: 22647

If you cannot upgrade Visual Studio to a newer version that includes newer versions of NuGet, you can install NUnit 3.5.0 which doesn't include .NET Standard. You can select the older versions from a dropdown in the user interface, or install from the Package Manager Console.

Install-Package NUnit -Version 3.5.0 

Upvotes: 2

Chris
Chris

Reputation: 6042

This error is often caused by the fact that your version of NuGet is too old. Try updating NuGet.

NUnit's most recent NuGet packages include .NET Standard builds, which mean NuGet client version 2.12 or later is required. From the next version of NUnit, you'll get a more helpful error message for this.

Upvotes: 2

Related Questions