The Wayback Machine - https://web.archive.org/web/20210108154708/https://github.com/microsoft/BPerf/issues/13
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eli-fin opened this issue Oct 24, 2018 · 1 comment
Open

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

eli-fin opened this issue Oct 24, 2018 · 1 comment

Comments

@eli-fin
Copy link

@eli-fin eli-fin commented Oct 24, 2018

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.

@eli-fin eli-fin changed the title 'ICorProfilerCallback8': base class undefined Build bug: 'ICorProfilerCallback8': base class undefined Oct 24, 2018
@mjsabby
Copy link
Member

@mjsabby mjsabby commented Nov 10, 2018

Thanks @eli-fin. I'll update the instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.