Advertisement
Wazanator

PostBuildEventSP2013Modified

Jul 20th, 2019
725
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.83 KB | None | 0 0
  1. if not exist "C:\Program Files (x86)\Steam\steamapps\sourcemods\myfirstmod\bin\." mkdir "C:\Program Files (x86)\Steam\steamapps\sourcemods\myfirstmod\bin\."
  2. copy "$(TargetDir)$(TargetFileName)" "C:\Program Files (x86)\Steam\steamapps\sourcemods\myfirstmod\bin\.\$(TargetFileName)"
  3. if ERRORLEVEL 1 goto BuildEventFailed
  4. if exist "$(TargetDir)$(TargetName).map" copy "$(TargetDir)$(TargetName).map" "C:\Program Files (x86)\Steam\steamapps\sourcemods\myfirstmod\bin\.\$(TargetName).map"
  5. copy "$(TargetDir)$(TargetName).pdb" "C:\Program Files (x86)\Steam\steamapps\sourcemods\myfirstmod\bin\.\$(TargetName).pdb"
  6. if ERRORLEVEL 1 goto BuildEventFailed
  7. goto BuildEventOK
  8. :BuildEventFailed
  9. echo *** ERROR! PostBuildStep FAILED for $(ProjectName)! EXE or DLL is probably running. ***
  10. del /q "$(TargetDir)$(TargetFileName)"
  11. exit 1
  12. :BuildEventOK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement