Results 1 to 4 of 4

Thread: [2.0] Build Events [RESOLVED]

  1. #1

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Resolved [2.0] Build Events [RESOLVED]

    Hi all trying to use the Build Events that are on the property page of the project I wish to copy a Directory so it's placed within the release folder when i compile.

    I write the following post build.

    Code:
    copy"$(ProjectDir) Reports" "$(TargetDir)"
    It works and my code complies but i get the following error message any one now why?


    Error 1 The command "copy"C:\C# Work\ReportTest\ReportTest\ Reports" "C:\C# Work\ReportTest\ReportTest\bin\Release\"" exited with code 123. ReportTest

    Thanks!!!

  2. #2
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Re: [2.0] Build Events

    Put a @ symbol before the variable
    Code:
    copy"$(@ProjectDir) Reports" "$(@TargetDir)"

  3. #3

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: [2.0] Build Events

    Thanks for the reply but i now get the error

    Error 4 The command "copy" Reports" """ exited with code 9009. ReportTest
    after taking your advice

  4. #4

    Thread Starter
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Resolved Re: [2.0] Build Events

    got it to work used the following in the post build event

    Code:
    xcopy "$(ProjectDir)Reports" "$(TargetDir)Reports" /i/y

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width