• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 226
  • Last Modified:

Need help with adding XML file to project

Is there a way to add a XML file to your project but not have it listed in the project. (not do file/add new item/xml

What I need is to just have a XML file show up in the bin with the exe after the project is built.

I hope this make sense

0
NewMom2Brandon
Asked:
NewMom2Brandon
  • 2
  • 2
  • 2
1 Solution
 
existenz2Commented:
That is not possible as far as I know. Since it is content which you want to at, i am in the opinion that you actually should add it to the solution since it's a part of the solution. You should keep all the stuff together.
0
 
tpwellsCommented:
I believe existenz2 is right.

If you are wanting a default xml file to be in the bin when you run your program, you code your program to create the file if it does not exist.

What are you trying to do with the xml that it can not be part of your project list?
0
 
NewMom2BrandonAuthor Commented:
so then I probably should do a app.config file then
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
existenz2Commented:
If it is a config file you definatly need to add it to the solution! Saves you lots of time and you don't want to loose the config file when the project/solution gets moved around in you company servers!
0
 
tpwellsCommented:
yes if what the file is for is to set application properties and settings that is the preferred file
0
 
NewMom2BrandonAuthor Commented:
Thank you! I think I will just go ahead and add the xml file into the project instead.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now