Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to get a ressource folder into the in folder

how to get a ressource folder into the in folder

Scheduled Pinned Locked Moved C#
questionhelptutorial
4 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    baranils
    wrote on last edited by
    #1

    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

    L L 2 Replies Last reply
    0
    • B baranils

      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

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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[^]

      B 1 Reply Last reply
      0
      • B baranils

        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

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • L Lost User

          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[^]

          B Offline
          B Offline
          baranils
          wrote on last edited by
          #4

          Thank You ! "Always copy" is the tip !!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups