Open fulopboti opened 6 years ago
Hi,
Thank you for bringing this issue to our attention.
Can you attach a small sample VS project (with source files) reproducing this problem?
Hi, I have attached a zip for a sample application.
Afaik MsBuild uses a WPP precompiler, which generates these tmh files, which contains macros for logging messages trough ETW.
From a procmon log we can see that the MsBuild.exe starts the C:\Program Files (x86)\MSBuild\14.0\bin\Tracker.exe
with a commandline which then starts the tracewpp.exe, to generate these tmh files.
As a solution you could generate temporary tmh files which contain only the macros with empty bodies from the comment in the trace.h
file.
Projects which use WPP tracing (WindowsAplicationForDriversXX) and do include the tmh files will raise errors such as:
C:\...\myfile.c:8:10: fatal error: 'myfile.tmh' file not found
example source file:
example trace.h: