Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XUnit nuget failing (visual studio 2013) xunit.core already has dependency defined

When doing a Nuget for XUnit.Net I get:

Attempting to resolve dependency 'xunit'.
Attempting to resolve dependency 'xunit.core (= 2.0.0-rc1-build2826)'.
'xunit.core' already has a dependency defined for 'xunit.extensibility.core'.

I get the same when tryting to Nuget Specflow.XUnit

like image 782
pashute Avatar asked Jan 23 '15 03:01

pashute


2 Answers

If you want the prerelease version, you need to update NuGet itself.

Tools > Extensions and Updates > Updates > Visual Studio Gallery.

like image 182
Rawling Avatar answered Oct 05 '22 13:10

Rawling


When I changed the Nuget option (up on top left above the the results and to the left of search) back from {include prerelease} to {stable only} everything works ok.

I needed the {include prerelease} for installing the {xunit.runner.visualstudio} which lets you run tests in the visual studio Test Explorer available from the Visual studio menu: Test/Windows/Show Test Explorer.

like image 37
pashute Avatar answered Oct 05 '22 12:10

pashute