VSTS Unit Tests: will debug but not run?
We have found a weird situation where for a certain vs.net solution, you can debug a vsts unit test but cannot run them. When you try to run them you get this error: (for all tests)
Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..
Now, I looked at the Assembly Binding Log using fuslogvw.exe and found 6 entries.
Application | Description | Date/Time |
---|---|---|
vstesthost.exe | Microsoft.VisualStudio.QualityTools.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | 11/10/2005 @ 9:48:54 PM |
vstesthost.exe | Microsoft.VisualStudio.QualityTools.ExecutionCommon, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | 11/10/2005 @ 9:48:53 PM |
vstesthost.exe | Microsoft.VisualStudio.QualityTools.AgentObject, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | 11/10/2005 @ 9:48:53 PM |
vstesthost.exe | Microsoft.VisualStudio.QualityTools.Tips.UnitTest.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | 11/10/2005 @ 9:48:54 PM |
vstesthost.exe | Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | 11/10/2005 @ 9:48:53 PM |
vstesthost.exe | msvcm80, Version=8.0.50608.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a | 11/10/2005 @ 9:48:53 PM |
I am guessing that it can’t find assemblies like: Microsoft.VisualStudio.QualityTools.Common.dll, which reside in this directory: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
Anyone else ever run into this?
** UPDATE **
I found a fix: I removed the reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework in my unit test assembly and re-added it.
Recent Posts
- Understanding API First Strategy and Benefits
- Frankenstein APIs Explained! - API Cyber Security Series
- API Security 101 - Cyber Security Explained
- API Trends 2022 - API Security and Cybersecurity
- API Trends 2022 - Seamless Integration Solutions
- API Trends 2022 - Adaptive API Management
- API Trends 2022 - API Integration Automation
- API Trends 2022 - Industry Specific Breakouts
- API Trends 2022 - API Best Practices
- API Trends 2022 - Open API Standards
- API Trends 2022 - API Integration Experience
- API Trends 2022 - API-Led Modernization
- API Trends 2022 - API Economy Growth
- Brenton House - Give your App and APIs a Turbo Boost – Part 2
- Easily Enable Speech Recognition in Titanium iOS using Hyperloop
Tag Cloud
- .NET
- adaptive api management
- android
- api
- api automation
- api best practices
- api economy
- api experience
- api first
- api integration
- api integrations
- api management
- api security
- api standards
- api strategy
- api trends
- apis
- appcelerator
- automation
- boot
- Brenton House
- C#
- Cisco VPN
- Cloud
- Community News
- Continuous Integration
- crash
- cybersecurity
- Dropbox
- fhir apis
- Free Stuff
- General Software Development
- Google Drive
- graphql
- healthcare apis
- houserules
- hyperloop
- ios
- json schema
- Live Mesh
- Mac OS X
- Microsoft
- mobile
- mobile api
- native
- open banking
- openapi
- Other Stuff
- SkyDrive
- speech
- Stuff
- swagger
- Team Systems
- titanium native
- titanium turbo
- Unit Testing
- Vista
- Visual Studio
- Visual Studio 11
- voice
- win7
- Windows 7
- Windows 8
- windows update