Skip to content

Commit

Permalink
Tweaked post build
Browse files Browse the repository at this point in the history
  • Loading branch information
maca134 committed Jun 22, 2015
1 parent 6765315 commit fe6b7e9
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 73 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ build/release/*
build/app/*
src/packages/*
src/Plugins/CCG/*
src/BattleNET/bin/*
src/BattleNET/obj/*
src/MBCon/bin/*
src/MBCon/obj/*
src/Plugins/*/bin/*
src/Plugins/*/obj/*
src/Proxy/bin/*
src/Proxy/obj/*
2 changes: 1 addition & 1 deletion build/build.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nant-0.92\nant.exe
nant.exe
pause
2 changes: 1 addition & 1 deletion build/clean.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nant-0.92\nant.exe clean
nant.exe clean
pause
10 changes: 2 additions & 8 deletions src/MBCon/MBCon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"
del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\*.dll"
del /Q "%25OUTPUTPATH%25\MBCon.vshost.*"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="..\packages\Fody.1.27.1\build\Fody.targets" Condition="Exists('..\packages\Fody.1.27.1\build\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/Console/Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/Logger/Logger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/ScheduledTasks/ScheduledTasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="..\packages\Fody.1.26.1\build\Fody.targets" Condition="Exists('..\packages\Fody.1.26.1\build\Fody.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/SimpleMessages/SimpleMessages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/TestPlugin/TestPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/WebLogger/WebLogger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
11 changes: 2 additions & 9 deletions src/Plugins/WebRcon/WebRcon.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,7 @@
</Target>
-->
<PropertyGroup>
<PostBuildEvent>set OUTPUTPATH=$(SolutionDir)Release\plugins\$(TargetName)\
IF EXIST "%25OUTPUTPATH%25" (RD /S /Q "%25OUTPUTPATH%25")
mkdir "%25OUTPUTPATH%25"
xcopy /E /Y "$(TargetDir)*.*" "%25OUTPUTPATH%25"

del /Q "%25OUTPUTPATH%25\*.pdb"
del /Q "%25OUTPUTPATH%25\*.config"
del /Q "%25OUTPUTPATH%25\*.xml"
del /Q "%25OUTPUTPATH%25\Proxy.dll"</PostBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit fe6b7e9

Please sign in to comment.