0

I have a winform Windows Forms application in .NET 4.5 and C# (Visual Studio 2012). It uses localDb to set a database in each user's machine through ClickOnce. I have more than 100,000 images which are not stored in the database, and I want to deploy them along with my application. In this situation in which these image files are static and supposed to be loaded in a PictureBox, what is the best practice?

Setting files 'Build Action' to "content" and 'Copy to output' to "copy always" are a really time-consuming job. Should I mark them as 'Data' File or copy them in the application folder?

How should I do it?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
peyman
  • 490
  • 7
  • 10
  • Can you not select all files at once and select "Copy Always"? Also check this http://msdn.microsoft.com/en-us/library/6fehc36e.aspx – Dave Williams Jul 08 '13 at 11:43
  • It can be. But it really a time and resource consuming job. For 16,000 files it takes more than 3 hours. I don't want to do that. And what If there is update to my program, A new image which should be installed on the user's machine in an update action? – peyman Jul 08 '13 at 12:19

1 Answers1

0

my company, Red Sky Software, makes a product called ClickOnceMore that may work for you here.

It's an alternative tool to VS for building ClickOnce manifests. It allows you to use inclusion rules to include all files in a directory without having to select each one individually.

I have to admit, it has not been tested with 100,000 files so I don't know what performance will be like, but it would be worth a try. You can download a free trial from ClickOnceMore.net.

Greg Jackman
  • 686
  • 7
  • 9