Missing Dependencies - Advanced Installer Community
JamesBoden
Posts: 13
Joined: Thu Mar 17, 2016 3:16 pm

Missing Dependencies

I have a VS solution that I have been using. I needed to upgrade the libraries from one of my third party software. The software upgrades the VS solution to use the newest version of their software. When this happens the plugin does not recognize that there is any new updates and it "looses" all references to these files. Even if I go to the "Files and Folders" tab and tell it to add project output. The only way to add these files was to go through the edit in advanced installer and add these files. These should be added automatically. Even the Microsoft were not showing up. One thing I noticed is that the ones that were marked to be "copy local" in the references were the ones showing up in the list in the references section of program section. The ones I added were under the regular files.

If the solution has to mark them as "copy Local" I can do that but it seems strange that I did not have to do that before. The other thing I notices as a test was to build it outside VS and create a brand new project under Advanced installer and have it look at the solution and it pulled all the correct references in.

So I am wondering why the plug in does not do this automatically in Visual Studio?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Missing Dependencies

Hello James and welcome to our forums,

I'm afraid I don't fully understand the scenario you are describing. It is the primary output of your VS projects which is not correctly synchronized with and detected by our VS extension or there are the references of your application files which are not correctly detected and updated by our VS extension? It will be very useful if you can isolate the behavior in a buildable sample (solution file + project files + their source files) with dummy resources and send it us alongside a detailed step by step test case which we can carefully follow to replicate the issue.

Also, if you could iterate a detailed step by step test case which we can follow, this will be very useful too.

As a side note, please let us know what version of VS do you use.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JamesBoden
Posts: 13
Joined: Thu Mar 17, 2016 3:16 pm

Re: Missing Dependencies

Visual Studio 2013.

The situation is that the primary output is not picking up the updated references. It is picking up the updated program but the references are not. What I tried was to build it outside VS to see if it was the project or if it was the plugin. The project did exactly what I wanted it to do, pickup all the references and put them in a project. The plugin did not. It did initially when it was first created. As far as the steps, I use DevExpress libraries. They are always updating them, so I try to skip a few unless it is important update. So they have a project converter or updater that will run through the project and pointing to the new references. This is updated in the references section of the project. So from this I am assuming or hoping that the plugin would recognize that there is new references and that they would be picked up. Since it did not pick them up I selected the files and folders and told it to collect all the dependences again, which it did not.

I hope this is clear enough on what happened. If not I will try to build a project to show what it does.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Missing Dependencies

Hello,

I've tested the scenario, but I cannot replicate the issue. All the references (including DevExpress ones) I added to the primary output are correctly packaged in the installation setup built within Visual Studio by our VS extension.

Please try to iterate a step by step test case which we can follow to replicate the issue in a new project.

Also, as a side note, can you trigger a rebuild within Visual Studio for your solution and see if this helps?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JamesBoden
Posts: 13
Joined: Thu Mar 17, 2016 3:16 pm

Re: Missing Dependencies

Daniel, did you set the references on the Copy Local to be true and not false?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Missing Dependencies

Hello,

Yes, the Copy Local flag it was set to true.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JamesBoden
Posts: 13
Joined: Thu Mar 17, 2016 3:16 pm

Re: Missing Dependencies

Ok. Mine was set to false. I guess the question should be is should it always be set to true on this?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Missing Dependencies

Yes, if you want to be included in your setup package you should set it to True.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”