itzArun itzArun - 1 year ago 124
C# Question

Include a Folder in ClickOnce Application

I've created a Windows C# project and made it as ClickOnce Application(Publish feature in Project properties) for Installation.
I want to Include a folder which has Crystal Report (rpt) files in it. In my application I have given path of rpt file as my Installation location.
How can I include this folder while publish. So that I need not copy the folder manually.

Answer Source

You have to add the items to the project and mark them as 'Content' (select the item in solution explorer, right click, properties, set Build Action).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download