问题
In our output tree, the Test directory only contains symbolic links (Win7 x64) pointing to DLLs in various build directories. Next to each of these DLLs in the actual build directory is a corresponding PDB file. However, when running OpenCover on the DLL in the Test directory, it ends with "No results - no assemblies that matched the supplied filter were instrumented this could be due to missing PDBs for the assemblies that match the filter please review the output file and refer to the Usage guide (Usage.rtf)"
The command line I'm using is:
D:\tools\opencover.4.5\OpenCover.console -target:d:\tools\nunit-2.5.10\nunit-console.exe -targetargs:"d:\temp\Test\Test.Mixed.dll /nologo /noshadow /labels /xml=d:\temp\Test\output\Test.Mixedatp_results.xml" -output:d:\temp\Test\Results\coverage\Test.Mixed.xml -filter:+[*]* -register:user
If I copy the applicable PDB into the Test directory, then the coverage does work. Is there a way to get this working with the symbolic links?
Thanks.
回答1:
Try using the -targetdir:
argument to point to a folder where the binaries+pdbs are located i.e. your symlink folder?
来源:https://stackoverflow.com/questions/14816741/opencover-cannot-find-pdb-when-using-symbolic-links