I recently installed VS2019 Prof 16.2 and experience following error when loading .coverage
files:
Microsoft Visual Studio
Exception was thrown: Could not load file or assembly 'Microsoft.VisualStudio.Coverage.Analysis,
Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or
one of its dependencies. The system cannot find the file specified.
I know that usually it meant (for previous VS versions) that you need to run tests first and then load coverage file, but now for 2019 16.2 it doesn't work. However, loading this same coverage file works in VS2017 Community 15.9.14
The Microsoft.VisualStudio.Coverage.Analysis.dll
is located in C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform
and has version 16.0.28223.3002
Is somebody else experiencing this issue?
A test project configured to reproduce issue can be found on my git https://github.com/miqm/playground/tree/master/SchedulingApp
To generate .coverage
I run dotnet test -s Default.runsettings
and then I use File -> Open to load it to VS.
I tried to run VS with /logs enabled but nothing meaningful came up. Only logs around the time I tried to open coverage are those:
<entry>
<record>777</record>
<time>2019/08/03 20:48:17.804</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage, Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{A9405AE6-9AC6-4F0E-A03F-7AFE45F6FCB7}</guid>
</entry>
<entry>
<record>778</record>
<time>2019/08/03 20:48:18.097</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [Microsoft.VisualStudio.TestTools.Tips.TuipPackage.TuipPackage, Microsoft.VisualStudio.QualityTools.Tips.TuipPackage, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{52CBD135-1F97-2580-011F-C7CD052E44DE}</guid>
</entry>
<entry>
<record>779</record>
<time>2019/08/03 20:48:18.152</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.TestTools.Tips.TuipPackage.TuipPackage, Microsoft.VisualStudio.QualityTools.Tips.TuipPackage, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{52CBD135-1F97-2580-011F-C7CD052E44DE}</guid>
</entry>
<entry>
<record>780</record>
<time>2019/08/03 20:48:18.164</time>
<type>Information</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage, Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=16.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description>
<guid>{A9405AE6-9AC6-4F0E-A03F-7AFE45F6FCB7}</guid>
</entry>
Any help appreciated.