VS .Net oddness with XML files

N

No One

I have several XML files that I used for configurations that are a part
of my C# project. When I build in Visual Studio .Net, however, these
files are not copied to the bin output directory. How can I make VS
pick up these files for the build?
 
N

Nick Malik

In the solution explorer... make sure that the file is in the project you
want it included with. Then, select the file in the solution explorer,
right-click->properties. You will see the Build action as one of the
properties.

In your setup project, make sure to include content files.

--- Nick
 
N

No One

The Build action for the file is Content. It still does not get put into the
project bin/Debug directory.
 
N

No One

By a setup project do you mean an installer project? I don't have one of
those. I am trying to do debugging on my class library, but the XML files are
not being copied over.

bryon
 
J

Joey Callisay

Are we talking here of the app.config file? Because VS renames it to
whatever the name of the output assembly + config
 
R

Ravichandran J.V.

If you included AppConfig items to your project, then you should leave
the names untouched i.e., do not change the name provided when you added
the item.

with regards,


J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com
 
N

No One

My English must be getting worse as more and more replies make less and less
sense to me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top