error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props" was not found. RRS feed

  • Question

  • I downloaded and wanted to use the sample project usb/usbview.
    As I tried to compile this project with Visual Studio Community 2017 Version 15.7.5, the error message came as follow:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Redirect.14.props(47,3):
    error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props" was not found.
    Confirm that the path in the declaration is correct, and that the file exists on disk.

    I've checked the folder C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\.
    There are 2 directories, Plateforms and WDKConversion, and 1 file fxcop.xml

    Please help me to solve this problem and build the usbview project to run.
    Many thanks.

    Monday, July 23, 2018 6:13 AM

All replies

  • Hi Quey,

    Welcome to the MSDN forum.

    Refer to your description, your issue is about the Windows Driver development and the sample seems developed in VS 2015, since our forum is to discuss the VS IDE, please redirect to this appropriate forumto seek for a more professional support for this issue, thank you for your understanding.

    For the error message, please check this similar issueand hope it helpful.

    Best regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Wednesday, July 25, 2018 3:30 AM
  • Have you installed the Visual Studio 15 compiler tools? You can do this in the Visual Studio 2017 installer:

    This is the last option under the desktop development with C++ workload.

    Adding this option adds the Visual Studio 2015 compiler tools and the auxiliary files so you can build, this includes the MSBuild files.

    This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.

    Wednesday, July 25, 2018 9:18 AM
  • Oh, right, and I thought that's a nightmare.
    I have installed/uninstalled entire Visual Studio 4 times.

    This time I go try it with ' Visual Studio 15 compiler tools'

    Thanks a lot.

    Monday, July 30, 2018 1:26 AM
  • Thanks, I will go to check those information.
    Monday, July 30, 2018 1:28 AM