473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VS .Net oddness with XML files

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?

Nov 16 '05 #1
8 1040
Build Action should be Content

"No One" <no***@yahoo.com> wrote in message
news:41***************@yahoo.com...
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?

Nov 16 '05 #2
Where do I find that?

Joey Callisay wrote:
Build Action should be Content

"No One" <no***@yahoo.com> wrote in message
news:41***************@yahoo.com...
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?


Nov 16 '05 #3
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

"No One" <no***@yahoo.com> wrote in message
news:41**************@yahoo.com...
Where do I find that?

Joey Callisay wrote:
Build Action should be Content

"No One" <no***@yahoo.com> wrote in message
news:41***************@yahoo.com...
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?

Nov 16 '05 #4
The Build action for the file is Content. It still does not get put into the
project bin/Debug directory.

Nick Malik wrote:
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

"No One" <no***@yahoo.com> wrote in message
news:41**************@yahoo.com...
Where do I find that?

Joey Callisay wrote:
Build Action should be Content

"No One" <no***@yahoo.com> wrote in message
news:41***************@yahoo.com...
> 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?
>


Nov 16 '05 #5
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

Nick Malik wrote:
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

"No One" <no***@yahoo.com> wrote in message
news:41**************@yahoo.com...
Where do I find that?

Joey Callisay wrote:
Build Action should be Content

"No One" <no***@yahoo.com> wrote in message
news:41***************@yahoo.com...
> 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?
>


Nov 16 '05 #6
Are we talking here of the app.config file? Because VS renames it to
whatever the name of the output assembly + config

"No One" <no***@yahoo.com> wrote in message
news:41***************@yahoo.com...
The Build action for the file is Content. It still does not get put into the project bin/Debug directory.

Nick Malik wrote:
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

"No One" <no***@yahoo.com> wrote in message
news:41**************@yahoo.com...
Where do I find that?

Joey Callisay wrote:

> Build Action should be Content
>
> "No One" <no***@yahoo.com> wrote in message
> news:41***************@yahoo.com...
> > 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?
> >

Nov 16 '05 #7
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #8
My English must be getting worse as more and more replies make less and less
sense to me.

"Ravichandran J.V." wrote:
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 16 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
3
by: Owen Jacobson | last post by:
Salve. I'm running into a compilation problem trying to write some code using libpqxx ( <http://pqxx.tk/> )'s pqxx::Connection and pqxx::Transactor classes. I seem to be running into a problem...
18
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
3
by: John Abel | last post by:
Hi, I'm running Python 2.3.5/2.4.2 on OSX 10.4.2, and am trying to run CGI scripts using the builtin Apache. For ease, I've symlinked my custom modules into the...
1
by: Nick Wilton | last post by:
Hello, sorry for X-posting Hope you are able to help with this one as its really urgent. I have two unmanaged VC++ 7.0 projects which requre the use of ActiveX controls within the dialog...
18
by: UJ | last post by:
Folks, We provide custom content for our customers. Currently we put the files on our server and people have a program we provide that will download the files. These files are usually SWF, HTML or...
6
by: jackfoust | last post by:
I'm trying to POST from a form a simple username and password onto another website. Firefox and Opera post the data and results are returned successfully. The site returns "missing user id and...
1
by: cedarmillxing215 | last post by:
The oddness is on the last line of code. This is stripped down as far as I could figure, and I provide several similar examples that work as expected. I have no idea whether this is a compiler...
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.