VS 2010 Unable to remove inherited additional dependencies

前端 未结 5 567
南笙
南笙 2021-01-13 03:50

Hi by mistake I added cv210d.lib, cxcore210d.lib and highgui210d.lib as inherited values under the project configuration->Linker->input->Additional Dependencies settings.

相关标签:
5条回答
  • 2021-01-13 04:37

    You can open with notepad the .vcxproj file of your project and find the lib you want to remove. Then, Delete that library from the xml field.

    0 讨论(0)
  • 2021-01-13 04:40

    You can find the file "Microsoft.Cpp.Win32.user" on your system and manually edit it as you want. Normally the file will be located at "C:\Users\%USERPROFILE%\AppData\Local\Microsoft\MSBuild\v4.0" location. It is an xml file.

    0 讨论(0)
  • 2021-01-13 04:45

    As was suggested I modified the property sheet in the property manager.

    The reason I found it confusing though was that in the Property Manager view, there are three different ways to change the properties. Through clicking on the debug, release property sheets or the project properties . But when I opened each one I thought I was opening the same thing, as they look similar.

    But the case is that, the properties from the debug and release property sheets are inherited to the project properties. And you cannot modify the inherited properties from the project properties.

    0 讨论(0)
  • 2021-01-13 04:51

    Did you accidentally add it to "Linker > Input" under "Property Manager > AnyProject > AnyConfiguration > Microsoft.Cpp.Win32.user"?

    Despite its strange position, this is the setting for all projects of the current user.

    0 讨论(0)
  • 2021-01-13 04:51

    As soon as you put a wrong .lib file into Additional Dependencies it went to the inherited directory. You need to untick "Inherit from parent or project defaults". Then, to save inherited .lib files (such kernel.lib and etc.) you need to copy and paste all of them into the Additional Dependencies directory. So your computer cannot take the wrong .lib file and will use only Additional Dependencies which you wrote

    0 讨论(0)
提交回复
热议问题