Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installed Microsoft.VisualStudio.QualityTools.UnitTestFramework does not appear in nuget package list

I am working with VS2013, .NET4.5

I was looking to use Microsoft.VisualStudio.TestTools.UnitTesting.TestCategoryAttribute on my tests to disable them in build server. I was unable to find it in Add reference -> Assemblies so I figured to use nuget package. Originally I installed it via 'Package Manager Console'.

Now I am experiencing weird issue with Microsoft.VisualStudio.QualityTools.UnitTestFramework nuget package. When I install it via Manage nuget packages at project level I can't see it in references. If I try to install it again it shows install button, but when I click it nothing happens.

If search at Solution level when it finds package it shows green 'installed' checkbox but I am unable to find it in installed packages so have no way of enabling it for projects.

I have checked packages folder and files are there.

I can manually add reference by browsing to .dll in packages folder but this does seem like a hack and I am pretty sure it will fail on build server.

And can remove it only manually by going to \packages deleting .nupkg and then removing reference from packages.config.

Have you experienced something similar (maybe with one of other nuget packages)? What was the cause? How did you solve it?

like image 872
Matas Vaitkevicius Avatar asked Jan 22 '15 11:01

Matas Vaitkevicius


People also ask

How do I manually install a NuGet package?

Open your project or solution in Visual Studio, and select Tools > NuGet Package Manager > Package Manager Console to open the Package Manager Console window. In the console, enter Find-Package with a keyword to find the package you want to install.

How do I add Nupkg to Visual Studio?

From Visual Studio, select Tools > NuGet Package Manager > Package Manager Console. After the Package Manager Console pane opens, verify that the Default project drop-down list shows the project in which you want to install the package. If you have a single project in the solution, it's preselected.

Where does Visual Studio install NuGet packages?

Visual Studio installs the package and its dependencies in the project. When installation is complete, the added packages appear on the Installed tab. You can also find packages in the Dependencies > Packages node of your project in Solution Explorer.


1 Answers

I also got this issue recently and installing Microsoft.VisualStudio.UnitTesting instead solved the issue. Make sure you reference the library in the package folder by deleting the VisualStudio.QualityTools.UnitTestFramework reference first and install Microsoft.VisualStudio.UnitTesting through nuget package manager to unit testing project.

like image 135
madufit1 Avatar answered Sep 27 '22 17:09

madufit1