how to get a ressource folder into the in folder
-
Hello I need to have a ressource folder automaticaly created into the bin folder by the compiler and automaticaly copy a text file in it Purpose : My application need to read some information into a predefined textfile I can obviously create that text file into the ressouce folder of the project But when I compile the project I need that this text file will be automaticaly copied into the ressouce folder in the Bin Folder What is the method to do that ? Thanks a lot for your help
-
Hello I need to have a ressource folder automaticaly created into the bin folder by the compiler and automaticaly copy a text file in it Purpose : My application need to read some information into a predefined textfile I can obviously create that text file into the ressouce folder of the project But when I compile the project I need that this text file will be automaticaly copied into the ressouce folder in the Bin Folder What is the method to do that ? Thanks a lot for your help
baranils wrote:
What is the method to do that ?
You could include the file and go to the properties page and select "Always copy", or create a batch-file and execute that prior to build. Remember that the IDE can execute commands before build, is somewhere in the projects' settings.
Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]
-
Hello I need to have a ressource folder automaticaly created into the bin folder by the compiler and automaticaly copy a text file in it Purpose : My application need to read some information into a predefined textfile I can obviously create that text file into the ressouce folder of the project But when I compile the project I need that this text file will be automaticaly copied into the ressouce folder in the Bin Folder What is the method to do that ? Thanks a lot for your help
in some IDE's (such as Visual Studio) you can specify pre-build and post-build commands; these get executed at the start and termination of a build, and use a DOS-like syntax. Copying some files in this way is a typical usage. OTOH if your files are present while building, what makes you think they will disappear? You can add all kinds of files to a project, and get them deployed. Again, VS gives you a choice of actions to be taken for files it doesn't normally know about, the choices are: none, compile, content, embedded resource. I suggest you experiment a little. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
baranils wrote:
What is the method to do that ?
You could include the file and go to the properties page and select "Always copy", or create a batch-file and execute that prior to build. Remember that the IDE can execute commands before build, is somewhere in the projects' settings.
Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]