VS .Net oddness with XML files

  • Thread starter Thread starter No One
  • Start date Start date
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?
 
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
 
The Build action for the file is Content. It still does not get put into the
project bin/Debug directory.
 
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
 
Are we talking here of the app.config file? Because VS renames it to
whatever the name of the output assembly + config
 
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
 
My English must be getting worse as more and more replies make less and less
sense to me.
 
Back
Top