Does $(ProjectDir) exist teamcity?

This commit is contained in:
high 2011-07-01 11:11:50 -04:00
parent d55b8cb4fb
commit 338292c7bf
2 changed files with 1 additions and 1 deletions

View file

@ -142,7 +142,7 @@
</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>"$(SolutionDir)postbuild.bat"</PostBuildEvent>
<PostBuildEvent>"$(ProjectDir)postbuild.bat"</PostBuildEvent>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>

12
TShockAPI/postbuild.bat Normal file
View file

@ -0,0 +1,12 @@
@echo off
set pluginspath=C:\Program Files (x86)\Steam\steamapps\common\terraria\serverplugins\
IF NOT EXIST "%pluginspath%" GOTO SkipCopy
attrib -r "%pluginspath%TShockAPI.dll"
attrib -r "%pluginspath%TShockAPI.pdb"
copy "TShockAPI.dll" "%pluginspath%"
copy "TShockAPI.pdb" "%pluginspath%"
echo Files copied
GOTO end
:SkipCopy
echo Skipped copying files
:end