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. Post-build event problem

Post-build event problem

Scheduled Pinned Locked Moved Visual Studio
helpquestion
2 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.
  • T Offline
    T Offline
    tgrt
    wrote on last edited by
    #1

    I'm trying to execute the following command as a post-build event, but it continually fails. copy $(ProjectDir)Documentation\MyProgram.chm $(ProjectDir)$(OutDir) The project output indicates that the command and therefore the build failed. I closely examined the command string in the project output and it should work. I can run the same command from the command line with no problems. The command is defined in the Build Events tab of the project properties. (I've tried it as a pre-build event with the same effect.) The documentation is in a subfolder off the project folder and I don't want that folder in the output. For now, I'm going to have my documentation compile to the project folder but that is not a permanent solution. Any ideas of why this is occuring?

    _ 1 Reply Last reply
    0
    • T tgrt

      I'm trying to execute the following command as a post-build event, but it continually fails. copy $(ProjectDir)Documentation\MyProgram.chm $(ProjectDir)$(OutDir) The project output indicates that the command and therefore the build failed. I closely examined the command string in the project output and it should work. I can run the same command from the command line with no problems. The command is defined in the Build Events tab of the project properties. (I've tried it as a pre-build event with the same effect.) The documentation is in a subfolder off the project folder and I don't want that folder in the output. For now, I'm going to have my documentation compile to the project folder but that is not a permanent solution. Any ideas of why this is occuring?

      _ Offline
      _ Offline
      _NielsB
      wrote on last edited by
      #2

      I'm not familiar to that, but my lastly asked question is kind of related to your problem. I'm using the command copy "$(InputPath)" "$(OutDir)" within a custom build-step of a project-file. Works fine for me, except for the error message when the file allready exist ;) But I hope this will be solved soon.

      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