Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2010 Unable to remove inherited additional dependencies

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

But I cannot seem to remove them from the "inherited" additional dependencies. So each time I start a new project I get an error because these liberties cannot be found.

There is an option to ignore the inherited dependencies but I cannot do this as it contains values I do need.

So I am looking for a way to remove these unwanted values from the "inherited" additional dependencies.

like image 522
John Jo Avatar asked Jul 15 '11 23:07

John Jo


2 Answers

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.

like image 137
khayk Avatar answered Nov 06 '22 23:11

khayk


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.

like image 43
John Jo Avatar answered Nov 06 '22 23:11

John Jo