Link error 1104 can not open .lib

I am getting a linker error 1104 that says “fatal error LNK1104: cannot open file ‘MyPlugin.lib’”
In my linker setting I have MyPlugin.lib as an additional dependency.
I do not know if it is relevant but I have my configuration type set to dynamic library.
Can anyone help me figure out why this is happening?