microsoft / microsoft/CLRInstrumentationEngine

Support .NET < 4.0 and COM registration for CLRInstrumentationEngine on Windows

Open
#153 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

task
Dominant language
C++
Stars
102
Forks
52
Avg merge
13h 11m
Merged PRs (30d)
6

Description

Followed the build instructions and successfully generated all build artifacts.
Also ensured that all tests pass, namely 37 of 37, 42/42, 59/59 all pass.

In section Environment Variables, in the first occurrence of COR_PROFILER I see a bracketed UUID which implies that successful DLL registration is necessary, especially for framework versions < 4.

However, when I attempt DLL registration as shown below from an admin prompt, it fails with error 0x80070715, i.e. "The specified resource type cannot be found in the image file."

C:\Windows\SysWOW64\regsvr32.exe /i C:\tmp\CLRInstrumentationEngine\bin\Debug\x64\InstrumentationEngine\x64\MicrosoftInstrumentationEngine_x64.dll

The above DLL is missing typical COM sections like REGISTRY, TYPELIB, String Table.
See the attached image.
missing_com_sections

Build tool version: vs2019 Professional 16.3.5
Host OS: Windows 10, 1903, build 18362.418

What am I missing here?
See also a forward link to my previous message.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/environment_variables.md and the first COR_PROFILER reference, then reproduce the reported regsvr32 command against the generated x64 DLL on Windows. Review the linked earlier issue and the build artifacts to determine the expected registration path for .NET versions below 4. Done means the supported registration behavior is established and the documentation or implementation reflects it.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.