Static Driver Verifier Bug when including files using the $(SolutionDir) macro.

Not a question, just something I came across in case anyone ran into this problem.

Our drivers have common code shared throughout other projects. We used git’s submodules to include this common code where as before with our previous SCM software, everything lived in one monolithic repository and each project just included header files via relative paths. Using submodules, the root directory containing our .sln file also includes the subfolder where our submodules reside. In my project properties, I included this folder by using the $(SolutionDir) macro instead of using relative paths. This works fine when building.

However, SDV expands this path incorrectly and always fails during building.

I opened a bug for this (https://aka.ms/Thhogy), but if your SDV fails when it used to work before after you mucked around with your includes, check the build log and see if your paths are expanding correctly.

What version of VS and the wdk are you using?

Bent from my phone


From: xxxxx@lists.osr.com on behalf of xxxxx@gmail.com
Sent: Sunday, February 25, 2018 11:09:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Static Driver Verifier Bug when including files using the $(SolutionDir) macro.

Not a question, just something I came across in case anyone ran into this problem.

Our drivers have common code shared throughout other projects. We used git’s submodules to include this common code where as before with our previous SCM software, everything lived in one monolithic repository and each project just included header files via relative paths. Using submodules, the root directory containing our .sln file also includes the subfolder where our submodules reside. In my project properties, I included this folder by using the $(SolutionDir) macro instead of using relative paths. This works fine when building.

However, SDV expands this path incorrectly and always fails during building.

I opened a bug for this (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FThhogy&data=04|01|Doron.Holan%40microsoft.com|1475f0ef44a3499d892c08d57c838c18|72f988bf86f141af91ab2d7cd011db47|1|0|636551826787822406|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=Pdy4eXgahlIIHPH9Xi%2FeOLgNOZBeSxDjM5lTjYF138I%3D&reserved=0), but if your SDV fails when it used to work before after you mucked around with your includes, check the build log and see if your paths are expanding correctly.


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

VS Enterprise 2017, 15.5.7
WDK 10

On Sun, Feb 25, 2018 at 11:16 AM, xxxxx@microsoft.com <
xxxxx@lists.osr.com> wrote:

What version of VS and the wdk are you using?

Bent from my phone

*From:* xxxxx@lists.osr.com > osr.com> on behalf of xxxxx@gmail.com
> Sent: Sunday, February 25, 2018 11:09:00 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Static Driver Verifier Bug when including files using
> the $(SolutionDir) macro.
>
> Not a question, just something I came across in case anyone ran into this
> problem.
>
> Our drivers have common code shared throughout other projects. We used
> git’s submodules to include this common code where as before with our
> previous SCM software, everything lived in one monolithic repository and
> each project just included header files via relative paths. Using
> submodules, the root directory containing our .sln file also includes the
> subfolder where our submodules reside. In my project properties, I included
> this folder by using the $(SolutionDir) macro instead of using relative
> paths. This works fine when building.
>
> However, SDV expands this path incorrectly and always fails during
> building.
>
> I opened a bug for this (https://na01.safelinks.
> protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FThhogy&
> data=04%7C01%7CDoron.Holan%40microsoft.com%7C1475f0ef44a3499d892c08d57c83
> 8c18%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636551826787822406%
> 7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
> 1haWwifQ%3D%3D%7C-1&sdata=Pdy4eXgahlIIHPH9Xi%
> 2FeOLgNOZBeSxDjM5lTjYF138I%3D&reserved=0), but if your SDV fails when it
> used to work before after you mucked around with your includes, check the
> build log and see if your paths are expanding correctly.
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: https:> protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.
> com%2Fshowlists.cfm%3Flist%3Dntdev&data=04%7C01%7CDoron.
> Holan%40microsoft.com%7C1475f0ef44a3499d892c08d57c838c18%
> 7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636551826787822406%7CUnknown%
> 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
> 1haWwifQ%3D%3D%7C-1&sdata=y2uM5ncaY2dkTxNy%2FG7HTDRhhtd32TNov6Sis2zGPJE%
> 3D&reserved=0>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at https:> http%3A%2F%2Fwww.osr.com%2Fseminars&data=04%7C01%
> 7CDoron.Holan%40microsoft.com%7C1475f0ef44a3499d892c08d57c838c18%
> 7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636551826787822406%7CUnknown%
> 7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik
> 1haWwifQ%3D%3D%7C-1&sdata=ihi8pl2aAL04iACYeXwU6VURKlLYcR
> QaCRaDO2ESzPY%3D&reserved=0>
>
> To unsubscribe, visit the List Server section of OSR Online at <
> https://na01.safelinks.protection.outlook.com/?url=
> http%3A%2F%2Fwww.osronline.com%2Fpage.cfm%3Fname%
> 3DListServer&data=04%7C01%7CDoron.Holan%40microsoft.com%
> 7C1475f0ef44a3499d892c08d57c838c18%7C72f988bf86f141af91ab2d7cd011
> db47%7C1%7C0%7C636551826787822406%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D%7C-1&sdata=R1z%2BYHIoiPtd%
> 2FPbozvB759cOJpYEMnZ5R5JVBpbctcs%3D&reserved=0>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list online at: http:> showlists.cfm?list=ntdev>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:></http:></https:></https:>