<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--=============================================================================================-->
<Import Project="$(MSBuildProjectFile).props" />
<!--=============================================================================================-->
<Target Name="BeforeRebuild" DependsOnTargets="_PreBuildAction_" />
<Target Name="AfterBuild" DependsOnTargets="" />
<Target Name="Clean" DependsOnTargets="" />
<!--=============================================================================================-->

<Target Name="_VerifyBuildParameters_">
   <Error Condition=" '$(Platform)' == '' "
          Text="Project property was not specified: &quot;Platform&quot;." />
   <Error Condition=" '$(Configuration)' == '' "
          Text="Project property was not specified: &quot;Configuration&quot;." />
</Target>

<!--=============================================================================================-->

<Target Name="_CleanAll_">
   <RemoveDir
      Directories="@(_CleanAll_Folders_)" />
   <Delete
      Files="@(_CleanAll_Files_)" />
</Target>

<!--=============================================================================================-->

<Target
   Name="_CopyFilesToMetaOutputFolder_"
   Condition=" '$(_MetaOutputFolder_)' != '' AND
               '@(_CopyFilesToMetaOutputFolder_Files_)' != '' ">
   <Message
      Text="* Copying files to meta output folder ..."
      Importance="high" />
   <Copy
      SourceFiles='@(_CopyFilesToMetaOutputFolder_Files_)'
      DestinationFolder='$(_MetaOutputFolder_)' />
</Target>

<!--=============================================================================================-->

<Target
   Name="_GenerateFile_PropertiesInfo_CS_"
   Condition=" '$(_OutputFile_PropertiesInfo_CS_)' != '' ">
   <Message
      Text="* Generating file: &quot;$(_OutputFile_PropertiesInfo_CS_)&quot; ..."
      Importance="high" />
   <WriteLinesToFile
      File="$(_OutputFile_PropertiesInfo_CS_)"
      Lines="@(_PropertiesInfo_CS_->'%(Text)')"
      Encoding="UTF-8"
      Overwrite="True" />
</Target>

<Target
   Name="_GenerateFile_App_CONFIG_"
   Condition=" '$(_OutputFile_App_CONFIG_)' != '' ">
   <Message
      Text="* Generating file: &quot;$(_OutputFile_App_CONFIG_)&quot; ..."
      Importance="high" />
   <WriteLinesToFile
      File="$(_OutputFile_App_CONFIG_)"
      Lines="@(_App_CONFIG_->'%(Text)')"
      Encoding="UTF-8"
      Overwrite="True" />
</Target>
<!--
<Target
   Name="_GenerateFile_XValues_CS_"
   Condition=" '$(_OutputFile_XValues_CS_)' != '' ">
   <Message
      Text="* Generating file: &quot;$(_OutputFile_XValues_CS_)&quot; ..."
      Importance="high" />
   <WriteLinesToFile
      File="$(_OutputFile_XValues_CS_)"
      Lines="@(_XValues_CS_->'%(Text)')"
      Encoding="UTF-8"
      Overwrite="True" />
</Target>
-->
<!--=============================================================================================-->

<Target
   Name="_PreBuildAction_"
   DependsOnTargets="_VerifyBuildParameters_;_GenerateFiles_" />
<Target
   Name="_PostBuildAction_"
   DependsOnTargets="_VerifyBuildParameters_;" />

<Target
   Name="_GenerateFiles_"
   DependsOnTargets=" _GenerateFile_PropertiesInfo_CS_;
                      _GenerateFile_App_CONFIG_ " />

<!--=============================================================================================-->
</Project>
