Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ClickOnce with dynamically loaded assemblies

In my application, I load some assemblies dynamically, depending on what was the user's choice. Naturally, these are not referenced in the project. When publishing with ClickOnce, these assemblies are not included in the package.

The question is - is it possible to trick the ClickOnce publisher to use some other files not referenced in the project?

like image 266
Sergey Aldoukhov Avatar asked Sep 10 '09 18:09

Sergey Aldoukhov


People also ask

How do you add prerequisites to a ClickOnce application?

Select the Publish pane. Click the Prerequisites button to open the Prerequisites dialog box. In the Prerequisites dialog box, make sure that the Create setup program to install prerequisite components check box is selected. In the Prerequisites list, check the components that you wish to install, and then click OK.

How do you use ClickOnce?

In the Specific target page, select ClickOnce. Enter a path or select Browse to select the publish location. In the Install location page, select where users will install the application from. In the Settings page, you can provide the settings necessary for ClickOnce.

How do I manage updates for a ClickOnce application?

Click the Publish tab. Click the Updates button to open the Application Updates dialog box. In the Application Updates dialog box, make sure that the check box The application should check for updates is selected. In the Choose when the application should check for updates section, select After the application starts.

How do I add files to ClickOnce deployment?

On the File menu, click Open to open your application manifest. Select the Files tab. In the text box at the top of the tab, enter the directory that contains your application's files, and then click Populate. Your data file will appear in the grid.


1 Answers

I assume you are using Visual Studio to publish the deployment.

If you want to continue this way, you will either have to add the files as references, or add them as content to the project. Under the properties of the start-up project, go to the publish tab, Application Files.., and make sure the file is included.

Your other option is to build and publish the click-once manifests outside of Visual Studio using mageui.exe (or mage.exe if you want to work from the command line).

like image 97
Josh Avatar answered Dec 21 '22 23:12

Josh