Home Error in visual studio setup project-Could not load file or assembly log4net or one of it's dependencies. The system cannot find the file specified
 I know there are lots of thread and question out there. So, Please let me clarify the situation here. I am working on Ms-Word addin using visual c#, vsto and add-in express framework. I added a log4net assmeble from nuget package manager. When I try to build or debug the project. It works just fine. But just when I try to create setup project using add-in express extension (right click on project > add-in express> create setup project). It gives me an error (in a popup) just after the click Could not load file or assembly "log4net, Version=2.0.8.0 Cultural=neutral,PublicKeyToken=669e0ddf0bb1aa2a" or one of it's dependencies. The system cannot find the file specified. I have checked the version, multiple references of log4net.dll in my project, path in package.config and in the project.csproj file. All these things are of no issue. When I try to create a fresh similar project from scratch add log4net. it worked. But not with the current project. What would be the possible cause? I would appreciate any help. I am really got stuck at this. Following are the configuration : Project target framework is ".Net framework 4" package.config   app.config  ...
...  Product.csproj  False ..\..\..\..\..\..\..\Program Files (x86)\Add-in Express\Add-in Express for .NET\Bin\AddinExpress.MSO.2005.dll False ..\packages\Apache.NMS.1.7.1\lib\net40\Apache.NMS.dll ..\packages\Apache.NMS.ActiveMQ.1.7.2\lib\net40\Apache.NMS.ActiveMQ.dll ..\packages\log4net.2.0.8\lib\net40-full\log4net.dll True True True True True ..\packages\Newtonsoft.Json.10.0.3\lib\net40\Newtonsoft.Json.dll True True