Skip to content

Set the target for OpenCover #209

Closed
Closed
@tonyhallett

Description

@tonyhallett

As per @BOnstwedder request

Last I was wondering if it were possible to set the target for opencover, as it would be nice to set this to our locally installed nunit3console exe

in #136 (comment)

@FortuneN

I was going to add an option for the register argument as there appears to be a requirement for it #167 and #191 (comment).

Apparently below is not sufficient.

project.Is64Bit = container.TargetPlatform.ToString().ToLower().Equals("x64");

• -register[:user] - Use this switch to register and de-register the code coverage profiler. Alternatively use the optional user argument to do per-user registration where the user account does not have administrative permissions. Alternatively use an administrative account to register the profilers using the regsvr32 utility.
If you do not want to use the registry entries, use -register[:Path32] or -register[:Path64]to let OpenCover select the profiler for you. Depending on your choice it selects the /x86/OpenCover.Profiler.dll or /x64/OpenCover.Profiler.dll.
You should also consider using path32 and path64 options when profiling .net core targeted applications and .net 4.8 framework.

How would you like to proceed on the register argument, target ( and target args ) and additional arguments that we do not provide ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions