Every test in project says "Excluded from Live Unit Testing"?
I was getting a similar the same error, in out output window in the "Live Unit Testing" category, I found the following error:
FatalError - System.AggregateException: One or more errors occurred. ---> System.Exception: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I downloaded the latest version of that nuget package and it did not help, I basically had to force the 4.0.0.0 version in the config file which doesn't make much sense due to the fact that the actual version of the dll is 4.1.2.0. Any way, after that I stopped and started Live Unit Testing and now it works without a problem. Hope this helps.
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.0.0.0" />
For those still running into this issue, what fixed it for me was:
- Close visual studio
- Open your solution folder in the file explorer
- Delete the .vs folder (this may be hidden depending on your settings)
- Re-open the solution and run live unit testing.
This will blow away some of your local settings for the solution, so be aware of that. Things like the default startup project, debug parameters, etc. will be lost.