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

<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="_PreBuildAction_"
   DependsOnTargets="_VerifyBuildParameters_;_GenerateFiles_" />
<Target
   Name="_PostBuildAction_"
   DependsOnTargets="_VerifyBuildParameters_;_CopyFilesToOutputFolder_" />

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

<Target Name="_CleanAll_">
   <RemoveDir
      Directories="@(_CleanAll_Folders_)" />
   <Delete
      Files="@(_CleanAll_Files_)" />
</Target>
<!--
<Target
   Name="_CleanAssemblyReferences_"
   Condition=" '@(_CleanAssemblyReferences_Files_)' != '' ">
   <Message
      Text="* Removing files from assembly reference folder ..."
      Importance="high" />
   <Delete
      Files="@(_CleanAssemblyReferences_Files_)" />
</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="_GenerateFiles_"
   DependsOnTargets="_GenerateFile_PropertiesInfo_CS_" />

<Target
   Name="_CopyFilesToOutputFolder_"
   Condition=" '$(_OutputFolder_)' != '' AND
               '@(_CopyFilesToOutputFolder_Files_)' != '' AND
               Exists( '$(_OutputFolder_)' ) ">
   <Message
      Text="* Copying output files to output folder ..."
      Importance="high" />
   <Copy
      SourceFiles='@(_CopyFilesToOutputFolder_Files_)'
      DestinationFolder='$(_OutputFolder_)' />
</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>

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