anchor.diff:  	echo 	^<DebuggerFlavor^>WindowsLocalDebugger^</DebuggerFlavor^> >> %1
   	echo   ^</PropertyGroup^> >> %1
   	echo   ^<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"^> >> %1
  +	echo 	^<LocalDebuggerWorkingDirectory^>%PROJECT_ROOT_DIR%release^</LocalDebuggerWorkingDirectory^> >> %1
  +	echo 	^<DebuggerFlavor^>WindowsLocalDebugger^</DebuggerFlavor^> >> %1
  +	echo   ^</PropertyGroup^> >> %1
  +	echo   ^<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='RelWithDebInfo|Win32'"^> >> %1
   	echo 	^<LocalDebuggerWorkingDirectory^>%PROJECT_ROOT_DIR%release^</LocalDebuggerWorkingDirectory^> >> %1
   	echo 	^<DebuggerFlavor^>WindowsLocalDebugger^</DebuggerFlavor^> >> %1
   	echo   ^</PropertyGroup^> >> %1
  
positive.code: copy /Y "%PVPGN_BUILD%\pvpgn.sln" "%PVPGN_DEVKIT%\"
  
  :: build each project
  call :build_project bnetd bnetd
  call :build_project bnpass bnpass
  call :build_project bnpass sha1hash
  call :build_project bntrackd bntrackd
  call :build_project bniutils bni2tga
  call :build_project bniutils bnibuild
  call :build_project bniutils bniextract
  call :build_project bniutils bnilist
  call :build_project bniutils tgainfo
  call :build_project common common
  call :build_project compat compat
  call :build_project client bnbot
  call :build_project client bnchat
  call :build_project client bnftp
  call :build_project client bnstat
  call :build_project d2cs d2cs
  call :build_project d2dbs d2dbs
  call :build_project win32 win32
  
  
  :: remove unused projects generated by cmake
  
negative.code: 	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%source" "%PROJECT_ROOT_DIR%source"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj.filters" "%CURRENT_PATH%source" "%PROJECT_ROOT_DIR%source"
  	:: replace release and debug paths
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%%PVPGN_BUILD%\%1\Debug" "%PROJECT_ROOT_DIR%release"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%%PVPGN_BUILD%\%1\Release" "%PROJECT_ROOT_DIR%release"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%%PVPGN_BUILD%\%1\RelWithDebInfo" "%PROJECT_ROOT_DIR%release"
  	:: replace unix like build path
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH_BACKSLASH%%PVPGN_BUILD%/%1" "../%2"
  	:: replace path for magic builder module 
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "%CURRENT_PATH%module" "%PROJECT_ROOT_DIR%module"
  	:: replace new path in pvpgn.sln
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%pvpgn.sln" "%1\%2" "projects\%2\%2"
  	
  	:: libs now build into release
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "..\common\Debug\common.lib" "%PROJECT_ROOT_DIR%%PVPGN_BUILD%\src\common\Debug\common.lib"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "..\compat\Debug\compat.lib" "%PROJECT_ROOT_DIR%%PVPGN_BUILD%\src\compat\Debug\compat.lib"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "..\win32\Debug\win32.lib" "%PROJECT_ROOT_DIR%%PVPGN_BUILD%\src\win32\Debug\win32.lib"
  	@call %TOOLS_PATH%replacer.bat "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" "..\..\lib\fmt\Debug\fmt.lib" "%PROJECT_ROOT_DIR%%PVPGN_BUILD%\lib\fmt\Debug\fmt.lib"
  
  	:: remove reduntant cmake node that executes cmake.exe on each build
  	call :remove_xml_node "%PVPGN_DEVKIT%projects\%2\%2.vcxproj" Project/ItemGroup/CustomBuild
  