Post Build exited with code 1

后端 未结 18 1861
囚心锁ツ
囚心锁ツ 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:54

    In my case I had to cd (change directory) before calling the bat file, because inside the bat file was a copy operation that specified relative paths.

    :: Copy file
    cd "$(ProjectDir)files\build_scripts\"
    call "copy.bat"
    

提交回复
热议问题