Publishing large datafiles with ClickOnce
I have a project with a rather large datafile (30MB) and it seems that each time I publish the ClickOnce project it has to copy the datafile up to the server, even tho开发者_JAVA技巧ugh it is a duplicate of the other duplicates that are up there. Is there any way to avoid this outside of separately hosting the data file and downloading it in code?
Move this file out to a custom prerequisite package to solve this. From your ClickOnce install you can check for this package and install it if needed. Here's a link to how to do it.
The prerequisite package only needs to be redeployed when it changes, saving you lots of upload time.
精彩评论