OpenCover cannot find PDB when using symbolic links?

会有一股神秘感。 提交于 2019-12-10 23:48:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!