ClickOnce OnDemand Assemblies

  • Thread starter Thread starter averyrf
  • Start date Start date
A

averyrf

I have written a winform app that splits out various pieces of
functionality into separate assemblies (Class Libraries). I deploy it
using ClickOnce. The main exe is marked Incude(Auto) and Required.
The various assemblies are marked Include(Auto) and split into File
Groups. All of the Class Libraries are referenced in the solution by
the exe project. After the File Group is asynchronously downloaded,
the latest version is not used. The previous version is used in its
place. If I synchronously download the assemblies, the same thing
happens. Any ideas???

Thanks!!
 
Its because the folder location

i think i have the same problem as you.

In my case im using composite ui application blocks to load assemblies wich are by default in the same location as my main exe file and the assemblies are being loaded using reflection.

in the attachment i show an Example solution to develop some tests for whats going on.

The Assembly is added to my project as "Add Existing Item" cause i cant add the file as a reference.
The first folder as you can see, is the main folder and the second is the one who is downloaded as DownloadFileGroup.

so, if we put a newer version for the module (not for the application), the module will be downloaded to that second folder... and still be runing the older version...

if someone could help with this i'll be so appreciated.

thanks.
 

Attachments

  • ejemplo clickonce download assemblies.webp
    ejemplo clickonce download assemblies.webp
    117.9 KB · Views: 146
Back
Top