Skip to content

Excluding binaries #130

Answered by SteveGilham
Piotr-Miller asked this question in Q&A
Sep 20, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Those filters work on the assembly name (the value used for linkage) rather than the assembly path (which includes the file name extension). Strictly, the matched string is System.Reflection.AssemblyName.GetAssemblyName(path to assembly).Name; but in all reasonable cases that is the same as the value of System.IO.Path.GetFileNameWithoutExtension(path to assembly).

The string supplied as a filter argument is a regex that is matched against the assembly name; that also means that a literal . in the filter is a wild-card match -- those examples are excluding assemblies like path to release folder\xxx0dll.dll or path to release folder\xxxZdll.exe

The command line you want would be

altcover --…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Piotr-Miller
Comment options

Answer selected by SteveGilham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants