Ptvs: Error when importing code coverage file on VS Community

Created on 13 Apr 2017  路  5Comments  路  Source: microsoft/PTVS

---------------------------
Microsoft Visual Studio
---------------------------
Exception was thrown: Could not load file or assembly 'Microsoft.VisualStudio.Coverage.Analysis, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
---------------------------
OK   
---------------------------
Profiler bug P1 external investigate

Most helpful comment

@huguesv can you please link to issue forwarded to Code Coverage team, if there is one?

All 5 comments

Coverage is not available on Community and Pro, so we should handle this exception and display a more useful message. (Maybe there's an upsell page we can link people to on visualstudio.com? I'm not sure.)

VS2013 and VS2015 Pro WILL open coverage files (not sure about community).

VS2017 SHOULD be able to open and read code coverage files from a build server, just as VS2013 and VS2015 did... the error message thrown looks more like a bug than a deliberate attempt to remove this feature.

I keep a copy of VS2015 installed just so I can open these files.

The error message box is shown from low level code in the editor factory, making it pretty difficult to avoid. It is then rethrown and displayed a second time.

If you try to open a .coveragexml file with VS File->Open, you will get the same 2 message boxes.

I reported a problem so that the code coverage folks can fix it on their end, since this doesn't just affect Python users.
https://developercommunity.visualstudio.com/content/problem/135339/failed-to-load-microsoftvisualstudiocoverageanalys.html

Nothing for us to fix, it's up to the code coverage team now.

@huguesv can you please link to issue forwarded to Code Coverage team, if there is one?

Was this page helpful?
0 / 5 - 0 ratings