Click Once Deployment

After seeing Jamie Cool's video on Click Once deployment, I am now experimenting with it - on VS2005 Beta 1 (Beta 2 is on order!)

It looks really neat....

However, how do you put other files such as a text file and help file into the deployed application folder.  With other forms of deployment you can simply add them to the folder.  I can't seem to find something similar through the Click Once method.

I have tried adding the help file as a resource.  Whilst it appears in the resource folder on the solution explorer it does not appear in the list of files that I can choose to deploy with my project.  I am sure there must be a way.....

Thanks

Nick




Answer this question

Click Once Deployment

  • Coatesy

    Hi
    Just in case anyone is having the problem I describe above - I have found the solution - I guess it is obvious, but to save others the experimenting time that it took for me to get there ... here goes:
    Having Added files that you want to include with your program (such as Help files), as described above by Patrick, go to the Propoerties of each of those files - and change their "Build Action" property - I selected the property "Content", and then under Copy to Output Directory - I selected Copy Always (or 'if newer' also works). Then I published the application with Click Once - and my program now has its Help files where they should be.
    I guess it's obvious - but for newbies like me, it took a bit of time ...

  • Michelle Cheng

    Hi Nick,

    To add files to the deployment, you need to add them to you project before you publish. That is:

    1. In your project, add the file (right-click your project in the sol'n explorer and select 'Add new item' or 'Add existing item'
    2. Go to the project designer (right-click your project in the sol'n explorer and select 'properties'
    3. Go to the publish tab and select the 'Application files' button
    4. In the application files dialog, you should see the file you just added to your project. You can set the publish setting of the file, and whether or not it's a required file
    5. Publish your application (right-click your project in the sol'n explorer and select 'Publish'

    You should see that the file you added to your project has been published with your application.

    Cheers,
    -Patrick

  • Ranger1370

    Thanks! Your info saved me much time and googling.

    Muchas gracias!

    Troy S.


  • Ronak

    Hi Patrick
    I'm trying to add help files that I created using the HTML Help Workshop. I did as you instructed - and added the files to my project in the Solution Explorer - so now the .chm,.hhp,.hhc & .hhk files are shown in my solution explorer - but when I go to publish the project, the files don't appear in the application files dialog. I can't seem to find anyway of adding them.
    Am I doing something wrong
    Thanks
    David

  • Click Once Deployment