Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  content files (Tuesday, December 21, 2004)




Found the following interesting discussion in the Newsgroups:

content files
by:Brian Henry

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


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 * "Brian Henry" <brianiupmsdn@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]


 Reply:
by:Brian Henry

 what is the difference between content and none then?


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 * "Brian Henry" <brianiupmsdn@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]


 Reply:
by:Brian Henry

 thanks!








0 Comments:

Post a Comment

 
Previous Posts
    - A little overwhelmed with the number of options......
    - VB.Net Windows App Data Grid
    - Avoid IE control resizing ?
    - Visual Studio Web Forms vs. Access 2003 Forms
    - Newbie needs help with command line paramaters
    - How to decalre this in VB.net
    - Full screen mode
    - Application quits unexpectedly
    - How to Strong Name
    - Thread Form

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland