Post Build exited with code 1

后端 未结 18 1881
囚心锁ツ
囚心锁ツ 2020-12-04 16:11

I have a project with a post build event:

copy $(ProjectDir)DbVerse\\Lunaverse.DbVerse.*.exe  $(TargetDir)

It works fine every time on my m

18条回答
  •  鱼传尺愫
    2020-12-04 16:32

    I had a similar issue but specifically in a Jenkins build environment. To fix the issue, I switched from using a copy command in the post build event to using a copy target.

    I changed this:

       
          copy $(ProjectDir)bin\BLAH.Common.xml $(ProjectDir)App_Data\BLAH.Common.xml
       
    

    to this:

      
        
      
    

    and it works fine now.

    The specific error I was getting was:

    (PostBuildEvent target) -> 
      C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(4291,5): error MSB3073: The command "copy   exited with code 1. [
    

提交回复
热议问题