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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With