Excluding binaries #130
-
Hi Guys, Got question about excluding particular binary from instrumentation, let me call it xxx.dll. altcover --inplace -i "path to release folder" -s="xxx.dll" I will appreciate any tip. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 The string supplied as a filter argument is a regex that is matched against the assembly name; that also means that a literal The command line you want would be
where
which excludes the |
Beta Was this translation helpful? Give feedback.
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 ofSystem.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 likepath to release folder\xxx0dll.dll
orpath to release folder\xxxZdll.exe
The command line you want would be