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. Visual Studio
  4. Deploy a file

Deploy a file

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiojsontutorialquestion
4 Posts 2 Posters 0 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
    biop codeproject
    wrote on last edited by
    #1

    Dear all, I have a Visual Studio 2008 project for a mobile device. In the project, I have a config.ini file. I want the config file deployed to the program directory (Say: DEVICE \ Program Files \ MyProject directory) in device when I deploy the solution. How to do so? I know there is post-build event that you can fill out, but how to fill out the rest? I need to now the last piece of puzzle as I know the first two: Copy $(TargetDir)\MyProject.exe ???

    L 1 Reply Last reply
    0
    • B biop codeproject

      Dear all, I have a Visual Studio 2008 project for a mobile device. In the project, I have a config.ini file. I want the config file deployed to the program directory (Say: DEVICE \ Program Files \ MyProject directory) in device when I deploy the solution. How to do so? I know there is post-build event that you can fill out, but how to fill out the rest? I need to now the last piece of puzzle as I know the first two: Copy $(TargetDir)\MyProject.exe ???

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

      If the file is part of your project then you can just set its build properties using the Custom Build Tool link, and set the appropriate copy command in there.

      One of these days I'm going to think of a really clever signature.

      B 1 Reply Last reply
      0
      • L Lost User

        If the file is part of your project then you can just set its build properties using the Custom Build Tool link, and set the appropriate copy command in there.

        One of these days I'm going to think of a really clever signature.

        B Offline
        B Offline
        biop codeproject
        wrote on last edited by
        #3

        Richard, I appreciate your input. I do find much similarity between what you write and what I have discovered. If I click on 'Deploy solution', the EXE goes to appropriate place in my device. How do I do the same for the config file?

        L 1 Reply Last reply
        0
        • B biop codeproject

          Richard, I appreciate your input. I do find much similarity between what you write and what I have discovered. If I click on 'Deploy solution', the EXE goes to appropriate place in my device. How do I do the same for the config file?

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

          I don't have this option on my version (Express) of VS so I cannot offer any further suggestions. I would have assumed that a selection titled "Deploy solution" would have some way of identifying all components that need to be copied.

          One of these days I'm going to think of a really clever signature.

          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