<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<Target Name="SyncCommLib" AfterTargets="Build">
		<Message Importance="high" Text="Start to sync Common Library..."/>
		<Exec Command='$(ProjectDir)sync_directories.exe'
			   EchoOff='true'
			  ContinueOnError='true'
			  ConsoleToMSBuild='true'
			  StandardErrorImportance='high'
			StandardOutputImportance='high'>
			<Output TaskParameter="ConsoleOutput" PropertyName="SyncOutput"/>
			<Output TaskParameter="ExitCode" PropertyName="MSBuildLastExitCode" />
		</Exec>
		<Error Condition="'$(MSBuildLastExitCode)' != '0'" Text="Failed to sync common library. $(_GitOutput)" />
		<Message Importance="high" Text="Sync Done!" Condition="'$(MSBuildLastExitCode)' == '0'"/>
	</Target>
</Project>