<Project Sdk="Microsoft.NET.Sdk">

  <!--<PropertyGroup>
    <TargetFramework>net7.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
	<ItemGroup>
		<PackageReference Include="Mapster" Version="7.3.0" />
		<PackageReference Include="Mapster.Core" Version="1.2.0" />
		<PackageReference Include="MediatR" Version="12.1.1" />
		<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="7.0.11" />
		<PackageReference Include="PropertyChanged.Fody" Version="4.1.0" />
	</ItemGroup>-->


	<PropertyGroup>
		<TargetFramework>net5.0</TargetFramework>
		<LangVersion>10</LangVersion>
		<ImplicitUsings>enable</ImplicitUsings>
		<Nullable>enable</Nullable>
	</PropertyGroup>

	<ItemGroup>
		<PackageReference Include="Mapster" Version="7.3.0" />
		<PackageReference Include="Mapster.Core" Version="1.2.0" />
		<PackageReference Include="MediatR" Version="12.1.1" />
		<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="5.0.0" />
		<PackageReference Include="PropertyChanged.Fody" Version="4.1.0" />
	</ItemGroup>


	<Target Name="Mapster">
		<Exec WorkingDirectory="$(ProjectDir)" Command="dotnet build" />
		<Exec WorkingDirectory="$(ProjectDir)" Command="dotnet tool restore" />
		<Exec WorkingDirectory="$(ProjectDir)" Command="dotnet mapster extension -a &quot;$(TargetDir)$(ProjectName).dll&quot; -n DocuMed.Domain.Mappers -o Mappers" />
		<Exec WorkingDirectory="$(ProjectDir)" Command="dotnet mapster mapper -a &quot;$(TargetDir)$(ProjectName).dll&quot; -n DocuMed.Domain.Mappers -o Mappers" />
	</Target>

  <ItemGroup>
    <ProjectReference Include="..\DocuMed.Common\DocuMed.Common.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Folder Include="Dtos\LargDtos\" />
    <Folder Include="Dtos\ResponseDtos\" />
    <Folder Include="Dtos\RequestDtos\" />
    <Folder Include="Entities\City\" />
    <Folder Include="Entities\Patient\" />
    <Folder Include="Entities\User\" />
  </ItemGroup>

  <ItemGroup>
    <Using Include=" DocuMed.Domain.Entities.MedicalHistoryTemplate" />
    <Using Include="DocuMed.Common.Models.Entity" />
    <Using Include="DocuMed.Common.Models.Mapper" />
    <Using Include="DocuMed.Domain.Dtos.SmallDtos" />
    <Using Include="DocuMed.Domain.Entities.City" />
    <Using Include="DocuMed.Domain.Entities.MedicalHistory" />
    <Using Include="DocuMed.Domain.Entities.User" />
    <Using Include="DocuMed.Domain.Enums" />
    <Using Include="Mapster" />
    <Using Include="Microsoft.AspNetCore.Identity" />
    <Using Include="System.ComponentModel.DataAnnotations" />
    <Using Include="System.Numerics" />
  </ItemGroup>

</Project>
