Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C#: Imbed an xml file in a windows application

Posted on 2008-10-19
3
Medium Priority
?
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Accepted Solution

by:
vbturbo earned 1400 total points
ID: 22752245
0
 

Assisted Solution

by:brenkehoe777
brenkehoe777 earned 600 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

715 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