c# - How to use Text file with clickonce and be able to update it when updating? -


i have project , want use clickonce...

in project directory, has text files on needed bt applications.

  1. how can deliver program text files end users via clickonce?

  2. what if change text files, added, , removed, , modify some, how can clickonce me replace old textfiles , main program in end program.

  3. a sample pseudocode, if possible.

tnx

ps: text files used program not part of source code.

1) can deliver programe text file end user. can embed file in application , deliver clickonce.

steps (from msdn) :

  1. right-click project name, click add, , click add new item. in new item dialog box, select text file menu, , name file mytextfile.txt. when file opens in integrated development environment (ide), add text, , close file.

  2. right-click either text file, , select properties.

    in properties dialog box, locate build action property. default, property set content.

  3. click property , change build action property embedded resource.

2) everytime new version, clickonce send new text resource

3)

streamreader _textstreamreader = new streamreader(_assembly.getmanifestresourcestream("mynamespace.mytextfile.txt")); console.writeline(_textstreamreader.readline()); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -