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.
how can deliver program text files end users via clickonce?
what if change text files, added, , removed, , modify some, how can clickonce me replace old textfiles , main program in end program.
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) :
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.
right-click either text file, , select properties.
in properties dialog box, locate build action property. default, property set content.
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
Post a Comment