Skip to content

Build bug: 'ICorProfilerCallback8': base class undefined #13

@eli-fin

Description

@eli-fin

I cloned the repo and couldn't compile. The first error was the title (and another million followed, as is usually the case with these errors).

Now 'ICorProfilerCallback8' is only available in .net v4.7+, but for some reason, although I have .net v4.7+ installed, it can't find that base class.
The reason turned out to be that the project was including the profiling api headers of .net 4.6.1, because in my vs2017 cmd prompt, the environment variable 'NETFXSDKDir' was set to 'C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1'.
(this may be related to the following bug, but I'm not sure)

Anyway, for me, opening vs2017 dev cmd and running:
set NETFXSDKDir=C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7\
and compiling from there, fixed that.

It might be a good idea to add this to the build instructions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions