473,399 Members | 3,603 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,399 software developers and data experts.

content files

Hi,

If you have files in your project (like text files and bmp files stuff like
that, and config files) and want to have it copied to the bin folder at
build (i thought setting the build action to content did this but it
doesnt?) how can i get them to copy at each build? thanks
Nov 20 '05 #1
4 1116
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
If you have files in your project (like text files and bmp files stuff like
that, and config files) and want to have it copied to the bin folder at
build (i thought setting the build action to content did this but it
doesnt?) how can i get them to copy at each build? thanks


For the application configuration, name the file "App.config" and add it
to your project. VS.NET will automatically copy it into the "bin"
folder and rename it accordingly. For the other files, you can create a
batch file that copies the files to the "bin" folder.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
what is the difference between content and none then?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h************@uni-berlin.de...
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
If you have files in your project (like text files and bmp files stuff like that, and config files) and want to have it copied to the bin folder at
build (i thought setting the build action to content did this but it
doesnt?) how can i get them to copy at each build? thanks


For the application configuration, name the file "App.config" and add it
to your project. VS.NET will automatically copy it into the "bin"
folder and rename it accordingly. For the other files, you can create a
batch file that copies the files to the "bin" folder.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
what is the difference between content and none then?


If it's content, it will be included in a setup package, AFAIK.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
thanks!
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2h************@uni-berlin.de...
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
what is the difference between content and none then?


If it's content, it will be included in a setup package, AFAIK.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #5

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

Similar topics

0
by: Arg | last post by:
I posted this to alt.comp.lang.php last week and got no response so I am reposting it here today... I am trying to use the following script to allow users to download files with some of the file...
9
by: Markus Ernst | last post by:
Hi I use PEAR Cache to cache the frontend pages of a content managed web site. Now I update the contents of a page, and of course the updated contents will only be displayed after the expiring...
27
by: Gene Ellis | last post by:
Something strange is happening, but I bet it is a quick fix. My favicon image is showing up in the URL bar, for a couple of seconds, but then it disappears and the default browser icon is...
0
by: Melanie Provost | last post by:
I have a C# web application that saves files to a database as a byte array and retrieves those files. When retrieving a file to display I have to specify a content type / MIME type. I am having a...
5
by: Frankie | last post by:
Using ASP.NET 1.1 and IIS 6... what is the effect of enabling Content Expiration -- Expire Immediately? Does it cause the files in the virtual directory to be served on every single browser...
7
by: Water Cooler v2 | last post by:
I know what it is, and yet the knowledge of what a CMS is, is so vague that I find myself asking this question every now and then. I've googled and read the resources too. However, the knowledge is...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
5
by: DCDev | last post by:
I have a solution with multiple projects. One project is a windows forms project. I have report files (.rdlc) in a separate project that are built as "Content" with the "Copy Always" option....
0
by: Andrea Anastasescu | last post by:
Hi everybody, Inside the web.config of my application I have some custom sections. I have my own handlers for these sections, and their content is in external files. My problem is that...
1
by: Blau | last post by:
While trying to learn from some sample projects i'm running into a problem. The setup that I have is One Solution with two projects. (usually a library that is being developed along side an...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.