locked
How to get rid of "External Dependencies" Folder in C++ applications? RRS feed

  • Question

  • I have this silly problem. Without my knowledge the VS2019 created this folder and filled it with C++ SDK header files. There are perhaps 300 of them. They came from one of these folders as I found out.

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\SDK\ScopeCppSDK\vc15\SDK\include\um
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\SDK\ScopeCppSDK\SDK\include\um
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\um
    C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\um

    If you expand the folder "External Dependencies" In your Solution Explorer and right click on any header, you will see a dropdown window with this statement: "Include in Project" That mean they should be excluded, they are excluded, right? They are NOT excluded. The linker goes there all the time and gives me surprises, for instance it might say that the inline function I need to use, and already included in the code, is defined differently in one of those header files. How to close that folder "External Dependencies." It is impossible to remove it.

    Thanks, - MyCatAlex


    • Edited by MyCatAlex Sunday, April 12, 2020 6:05 PM
    Thursday, April 9, 2020 8:25 PM

Answers

  • Since I don't use VS2019 I'm just going by the Microsoft documentation.

    See https://docs.microsoft.com/en-us/visualstudio/ide/reference/options-text-editor-c-cpp-advanced?view=vs-2019 for the option to Disable External Dependencies Folders.

    Disable External Dependencies Folders

    The External Dependencies folder for each project isn't created or updated. In Solution Explorer, each project contains an External Dependencies folder, which contains all implicit files for that project. If you choose this option, that folder doesn't appear.


    • Edited by RLWA32 Thursday, April 9, 2020 8:47 PM
    • Marked as answer by MyCatAlex Friday, April 10, 2020 2:19 PM
    Thursday, April 9, 2020 8:46 PM
  • Hi,

    Thank you for posting here.

    >>How to ge rid of "External Dependencies" Folder in C++ applications

    I suggest you could try to click Tools -> Options, expand Text Editor, expand C/C++, and then choose Advanced. You could choose Disable External Dependencies Folders. If you choose this option, that folder doesn't appear.

    Best Regards,

    Jeanine Zhang

    • Marked as answer by MyCatAlex Friday, April 10, 2020 2:20 PM
    Friday, April 10, 2020 1:59 AM
  • You are solving the wrong problem. "External dependencies" folder is harmless; its existence doesn't lead to linker errors. Something else is causing them, figure out what it is. You could begin by showing the errors you observe.

    Igor Tandetnik

    • Marked as answer by MyCatAlex Friday, April 10, 2020 2:20 PM
    Friday, April 10, 2020 4:19 AM

All replies

  • Since I don't use VS2019 I'm just going by the Microsoft documentation.

    See https://docs.microsoft.com/en-us/visualstudio/ide/reference/options-text-editor-c-cpp-advanced?view=vs-2019 for the option to Disable External Dependencies Folders.

    Disable External Dependencies Folders

    The External Dependencies folder for each project isn't created or updated. In Solution Explorer, each project contains an External Dependencies folder, which contains all implicit files for that project. If you choose this option, that folder doesn't appear.


    • Edited by RLWA32 Thursday, April 9, 2020 8:47 PM
    • Marked as answer by MyCatAlex Friday, April 10, 2020 2:19 PM
    Thursday, April 9, 2020 8:46 PM
  • Hi,

    Thank you for posting here.

    >>How to ge rid of "External Dependencies" Folder in C++ applications

    I suggest you could try to click Tools -> Options, expand Text Editor, expand C/C++, and then choose Advanced. You could choose Disable External Dependencies Folders. If you choose this option, that folder doesn't appear.

    Best Regards,

    Jeanine Zhang

    • Marked as answer by MyCatAlex Friday, April 10, 2020 2:20 PM
    Friday, April 10, 2020 1:59 AM
  • You are solving the wrong problem. "External dependencies" folder is harmless; its existence doesn't lead to linker errors. Something else is causing them, figure out what it is. You could begin by showing the errors you observe.

    Igor Tandetnik

    • Marked as answer by MyCatAlex Friday, April 10, 2020 2:20 PM
    Friday, April 10, 2020 4:19 AM
  • You are solving the wrong problem. "External dependencies" folder is harmless; its existence doesn't lead to linker errors. Something else is causing them, figure out what it is. You could begin by showing the errors you observe.

    Igor Tandetnik

    It could be, but the last time I had an error related to it was yesterday and now it does not happen everyday, but I will bring it to your attention if I catch one.

    Thank you everyone, especially RLWA32.

    Thanks, - MyCatAlex

    Friday, April 10, 2020 2:23 PM