Search This Blog

Showing posts with label ClickOnce. Show all posts
Showing posts with label ClickOnce. Show all posts

Monday, June 11, 2018

Devexpress Project Converter, Clickonce PreRequisite dependencies, GAC and the ensuing hours you have wasted...

We have run DeveExpress Project Converter in Visual Studio to upgrade our clickonce from 17.1.5 to 18.1.3. Problem was that after the conversion 2 dlls, DevExpress.Images and DevExpress.RichEdit.Export were added to the Application Files (Publish tab) list with Publish Status as PreRequisites. The impact of this is that deploying the app showed an error message stating dll ***** was required to exist in the Windows GAC folder.

The solution, therefore, was to change the Publish Status of these PreRequisite dlls (in our case, to Exclude, because we deploy all devexpress from an external zip, in an external process - but usually you will set this to Include). After that, publishing will generate a manifest that does not show these dlls with PreRequisite dependencies, and hence you are rid of the deployment installation GAC message.

Sunday, February 4, 2018

Adding files and folders to a click once installation

Having trouble in adding specific files to your click once installation ? Morover, you want them to be placed under a specific folder ?

Here are the steps I followed that finally did it:

  1. You need to create the folder/file structure just like you want it to exist in your installation - in your visual studio project. For example, I needed two folders - x86 and x64, and the same  SQLite.Interop.dll under both
  2. Right click in your project, go to the Publish tab, then click in Application Files. Scroll down (they should be showing as the last items) to your added files, and make sure you change the Publish Status from Include (Auto) to Include. 
Should work now.