<Project InitialTargets="_VerifyProperties_" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--=============================================================================================-->
<PropertyGroup>
   <Copyright>© Sergei Y.Kitáev, 2020</Copyright>
   <Product>$(MSBuildProjectName) ($(Configuration); $(TargetFramework))</Product>
   <Product Condition=" '$(Configuration)' == 'Release' ">$(MSBuildProjectName) ($(TargetFramework))</Product>
   <FileVersion>$(Version)</FileVersion>
   <InformationalVersion>$(Version)</InformationalVersion>
   <!--<GenerateAssemblyInfo>false</GenerateAssemblyInfo>-->
</PropertyGroup>
<PropertyGroup>
   <_AssemblyProduct_Debug_>$(MSBuildProjectName) (Debug; $(TargetFramework))</_AssemblyProduct_Debug_>
   <_AssemblyProduct_Release_>$(MSBuildProjectName) ($(TargetFramework))</_AssemblyProduct_Release_>
</PropertyGroup>
<!--=============================================================================================-->
<Import Project="$(MSBuildProjectName).codegen.props" />
<!--=============================================================================================-->
<PropertyGroup>
   <_BinaryRootFolder_>$(MSBuildProjectDirectory)\bin</_BinaryRootFolder_>
   <_ObjectRootFolder_>$(MSBuildProjectDirectory)\obj</_ObjectRootFolder_>

   <_OutputFolder_ />
   <_OutputFolder_ Condition=" '$(_BinaryRootFolder_)' != '' AND '$(Configuration)' != '' AND '$(TargetFramework)' != '' "
   >$(_BinaryRootFolder_)\$(Configuration)\$(TargetFramework)</_OutputFolder_>

   <_AssemblyReferenceFolder_>$(MSBuildProjectDirectory)\..\..\..\Assemblies\.LEGACY</_AssemblyReferenceFolder_>

   <_VSCacheFolder_>$(MSBuildProjectDirectory)\.vs</_VSCacheFolder_>

   <_RemoveVSCacheFolderOnCleanup_ />
   <!--<_RemoveVSCacheFolderOnCleanup_>False</_RemoveVSCacheFolderOnCleanup_>-->
   <_RemoveVSCacheFolderOnCleanup_ Condition=" '$(_RemoveVSCacheFolderOnCleanup_)' == '' ">true</_RemoveVSCacheFolderOnCleanup_>
</PropertyGroup>
<PropertyGroup>
   <_OutputModuleName_>$(MSBuildProjectName).dll</_OutputModuleName_>
   <_OutputFileName_PDB_>$(MSBuildProjectName).pdb</_OutputFileName_PDB_>
   <_OutputFileName_XML_>$(MSBuildProjectName).xml</_OutputFileName_XML_>
   <_OutputFileName_DEPS_JSON_>$(MSBuildProjectName).deps.json</_OutputFileName_DEPS_JSON_>
   <_OutputFileName_RUNTIMECONFIG_JSON_>$(MSBuildProjectName).runtimeconfig.json</_OutputFileName_RUNTIMECONFIG_JSON_>
   <_OutputFileName_RUNTIMECONFIG_DEV_JSON_>$(MSBuildProjectName).runtimeconfig.dev.json</_OutputFileName_RUNTIMECONFIG_DEV_JSON_>
</PropertyGroup>
<!--=============================================================================================-->

<PropertyGroup>
   <_OutputModule_ />
   <_OutputFile_PDB_ />
   <_OutputFile_XML_ />
   <_OutputFile_DEPS_JSON_ />
   <_OutputFile_RUNTIMECONFIG_JSON_ />
   <_OutputFile_RUNTIMECONFIG_DEV_JSON_ />
</PropertyGroup>
<PropertyGroup Condition=" '$(_OutputFolder_)' != '' ">
   <_OutputModule_ Condition=" '$(_OutputModuleName_)' != '' ">$(_OutputFolder_)\$(_OutputModuleName_)</_OutputModule_>
   <_OutputFile_PDB_ Condition=" '$(_OutputFileName_PDB_)' != '' ">$(_OutputFolder_)\$(_OutputFileName_PDB_)</_OutputFile_PDB_>
   <_OutputFile_XML_ Condition=" '$(_OutputFileName_XML_)' != '' ">$(MSBuildProjectDirectory)\$(_OutputFileName_XML_)</_OutputFile_XML_>
   <_OutputFile_DEPS_JSON_ Condition=" '$(_OutputFileName_DEPS_JSON_)' != '' "
   >$(_OutputFolder_)\$(_OutputFileName_DEPS_JSON_)</_OutputFile_DEPS_JSON_>
   <_OutputFile_RUNTIMECONFIG_JSON_ Condition=" '$(_OutputFileName_RUNTIMECONFIG_JSON_)' != '' "
   >$(_OutputFolder_)\$(_OutputFileName_RUNTIMECONFIG_JSON_)</_OutputFile_RUNTIMECONFIG_JSON_>
   <_OutputFile_RUNTIMECONFIG_DEV_JSON_ Condition=" '$(_OutputFileName_RUNTIMECONFIG_DEV_JSON_)' != '' "
   >$(_OutputFolder_)\$(_OutputFileName_RUNTIMECONFIG_DEV_JSON_)</_OutputFile_RUNTIMECONFIG_DEV_JSON_>
</PropertyGroup>

<PropertyGroup>
   <_AssemblyReferenceModule_ />
   <_AssemblyReferenceFile_PDB_ />
   <_AssemblyReferenceFile_XML_ />
   <_AssemblyReferenceFile_DEPS_JSON_ />
   <_AssemblyReferenceFile_RUNTIMECONFIG_JSON_ />
   <_AssemblyReferenceFile_RUNTIMECONFIG_DEV_JSON_ />
</PropertyGroup>
<PropertyGroup Condition=" '$(_AssemblyReferenceFolder_)' != '' ">
   <_AssemblyReferenceModule_ Condition=" '$(_OutputModuleName_)' != '' ">$(_AssemblyReferenceFolder_)\$(_OutputModuleName_)</_AssemblyReferenceModule_>
   <_AssemblyReferenceFile_PDB_ Condition=" '$(_OutputFileName_PDB_)' != '' ">$(_AssemblyReferenceFolder_)\$(_OutputFileName_PDB_)</_AssemblyReferenceFile_PDB_>
   <_AssemblyReferenceFile_XML_ Condition=" '$(_OutputFileName_XML_)' != '' ">$(_AssemblyReferenceFolder_)\$(_OutputFileName_XML_)</_AssemblyReferenceFile_XML_>
   <_AssemblyReferenceFile_DEPS_JSON_ Condition=" '$(_OutputFileName_DEPS_JSON_)' != '' "
   >$(_AssemblyReferenceFolder_)\$(_OutputFileName_DEPS_JSON_)</_AssemblyReferenceFile_DEPS_JSON_>
   <_AssemblyReferenceFile_RUNTIMECONFIG_JSON_ Condition=" '$(_OutputFileName_RUNTIMECONFIG_JSON_)' != '' "
   >$(_AssemblyReferenceFolder_)\$(_OutputFileName_RUNTIMECONFIG_JSON_)</_AssemblyReferenceFile_RUNTIMECONFIG_JSON_>
   <_AssemblyReferenceFile_RUNTIMECONFIG_DEV_JSON_ Condition=" '$(_OutputFileName_RUNTIMECONFIG_DEV_JSON_)' != '' "
   >$(_AssemblyReferenceFolder_)\$(_OutputFileName_RUNTIMECONFIG_DEV_JSON_)</_AssemblyReferenceFile_RUNTIMECONFIG_DEV_JSON_>
</PropertyGroup>

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

<ItemGroup>
   <_CopyFilesToAssemblyReferenceFolder_Files_ Include="$(_OutputModule_)" />
   <_CopyFilesToAssemblyReferenceFolder_Files_ Include="$(_OutputFile_PDB_)" />
   <_CopyFilesToAssemblyReferenceFolder_Files_ Include="$(_OutputFile_XML_)" />
   <!--
   <_CopyFilesToAssemblyReferenceFolder_Files_ Include="$(_OutputFile_DEPS_JSON_)"              Condition=" '$(Configuration)' == 'Debug' " />
   <_CopyFilesToAssemblyReferenceFolder_Files_ Include="$(_OutputFile_RUNTIMECONFIG_JSON_)"     Condition=" '$(Configuration)' == 'Debug' " />
   <_CopyFilesToAssemblyReferenceFolder_Files_ Include="$(_OutputFile_RUNTIMECONFIG_DEV_JSON_)" Condition=" '$(Configuration)' == 'Debug' " />
   -->
   <_CleanAssemblyReferences_Files_ Include="$(_AssemblyReferenceModule_)"   Condition="Exists( '$(_AssemblyReferenceModule_)' )" />
   <_CleanAssemblyReferences_Files_ Include="$(_AssemblyReferenceFile_PDB_)" Condition="Exists( '$(_AssemblyReferenceFile_PDB_)' )" />
   <_CleanAssemblyReferences_Files_ Include="$(_AssemblyReferenceFile_XML_)" Condition="Exists( '$(_AssemblyReferenceFile_XML_)' )" />
   <_CleanAssemblyReferences_Files_ Include="$(_AssemblyReferenceFile_DEPS_JSON_)"
                                    Condition="Exists( '$(_AssemblyReferenceFile_DEPS_JSON_)' )" />
   <_CleanAssemblyReferences_Files_ Include="$(_AssemblyReferenceFile_RUNTIMECONFIG_JSON_)"
                                    Condition="Exists( '$(_AssemblyReferenceFile_RUNTIMECONFIG_JSON_)' )" />
   <_CleanAssemblyReferences_Files_ Include="$(_AssemblyReferenceFile_RUNTIMECONFIG_DEV_JSON_)"
                                    Condition="Exists( '$(_AssemblyReferenceFile_RUNTIMECONFIG_DEV_JSON_)' )" />

   <_CleanAll_Files_ Include="@(_CleanAssemblyReferences_Files_)" />
   <!--<_CleanAll_Files_ Include="$(_OutputFile_XML_)" />-->

   <_CleanAll_Folders_
      Condition="Exists('$(_BinaryRootFolder_)')"
      Include="$(_BinaryRootFolder_)" />
   <_CleanAll_Folders_
      Condition="Exists('$(_ObjectRootFolder_)')"
      Include="$(_ObjectRootFolder_)" />
   <_CleanAll_Folders_
      Condition=" '$(_RemoveVSCacheFolderOnCleanup_)' == 'true' AND Exists( '$(_VSCacheFolder_)' ) "
      Include="$(_VSCacheFolder_)" />
</ItemGroup>

<!--=============================================================================================-->
<Target Name="_VerifyProperties_">
   <Error Condition=" '$(TargetFramework)' == '' "
          Text="Property &quot;TargetFramework&quot; was not defined." />
   <Error Condition=" '$(Configuration)' == '' "
          Text="Property &quot;Configuration&quot; was not defined." />
<!--
   <Error Condition=" '$(_XProperty_)' == '' "
          Text="Property &quot;_XProperty_&quot; was not defined." />
   <Error
      Condition=" '$(XVariable)' == '' "
      Text="Environment variable &quot;XVariable&quot; was not defined." />
   <Error
      Condition=" '$(XVariable)' != '1' "
      Text="Not defined flag property: &quot;XVariable&quot; (environment variable)." />
-->
</Target>
<!--=============================================================================================-->
</Project>
