Solved

C#: Imbed an xml file in a windows application

Posted on 2008-10-19
3
325 Views
Last Modified: 2013-12-17
Hi,

I am building a windows application that has xml files with data inside. I would like to embed the files in the application so that whenever the application is deployed, the data in the xml files will always be available. I don't want to put the user in the trouble of looking for the files.
Can someone help?
0
Comment
Question by:karakav
3 Comments
 
LVL 18

Accepted Solution

by:
vbturbo earned 350 total points
ID: 22752245
0
 

Assisted Solution

by:brenkehoe777
brenkehoe777 earned 150 total points
ID: 22752446
You could add the files to your solution then on the properties for each file turn Copy Always on this way the files will always be in the output directory when the project is built
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22752527
Also you can declare your resource as Embedded, so it will be distributed *inside* your .exe assembly. You will be responsible to extract from the assembly and copy to file.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question