<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>../FastReport.Net.snk</AssemblyOriginatorKeyFile>
    <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
    <Copyright>Fast Reports Inc.</Copyright>
    <Company>Fast Reports Inc.</Company>
    <PackageLicenseUrl></PackageLicenseUrl>
    <PackageLicenseFile>license.md</PackageLicenseFile>
    <PackageProjectUrl>https://www.fast-report.com/en/product/fast-report-net</PackageProjectUrl>
    <Authors>Fast Reports Inc.</Authors>
    <Product>FastReport</Product>
    <PackageIcon>frlogo192.png</PackageIcon>
    <PackageIconUrl></PackageIconUrl>
    <PackageTags>reporting, reports, pdf, html, mvc, core</PackageTags>
    <Version>1.0.0</Version>
    <Configurations>Debug;Release;Academic;Demo;WinForms;Test</Configurations>
    <AssemblyName>FastReport</AssemblyName>
    <RootNamespace>FastReport</RootNamespace>
  </PropertyGroup>

  <PropertyGroup>
    <DefineConstants>WITHOUT_UNISCRIBE;TRACE;DOTNET_4;FRCORE</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='Debug'">
    <DefineConstants>$(DefineConstants);DEBUG;</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='WinForms'">
    <DefineConstants>$(DefineConstants);WinForms;</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='Demo'">
    <DefineConstants>$(DefineConstants);Demo;</DefineConstants>
    <DemoDescription>The full version of the package is available in FastReport.Net Professional at https://www.fast-report.com/en/fast-report-net-editions-compare/</DemoDescription>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='Academic'">
    <DefineConstants>$(DefineConstants);Academic;</DefineConstants>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='Test'">
    <UseFakes>true</UseFakes>
  </PropertyGroup>
  <PropertyGroup Condition="'$(UseFakes)' == 'true'">
    <DefineConstants>$(DefineConstants);USE_FAKES</DefineConstants>
  </PropertyGroup>

  <!--readonly struct's feature-->
  <PropertyGroup Condition="'$(MSBuildVersion)' >= '16'">
    <DefineConstants>$(DefineConstants);READONLY_STRUCTS</DefineConstants>
  </PropertyGroup>

  <PropertyGroup Condition="'$(TargetFramework)'!='net40'">
    <DefineConstants>$(DefineConstants);CROSSPLATFORM</DefineConstants>
  </PropertyGroup>
  
  <PropertyGroup Condition="$(DebugFRCompat)">
    <DebugFRDataVis>true</DebugFRDataVis>
  </PropertyGroup>

  <PropertyGroup Condition="'$(TargetFramework)'!='net40'">
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>

  <!--MSChart & DataVisualization-->
  <PropertyGroup Condition="$(UseMSChart)">
    <DefineConstants>$(DefineConstants);MSCHART</DefineConstants>
  </PropertyGroup>

  <!-- Import source files -->
  <Import Project="..\FastReport.Base\FastReport.Base.csproj" />
  <Import Project="..\FastReport.BaseExt\FastReport.BaseExt.csproj" />
  <ItemGroup>
    <Compile Include="$(MSBuildThisFileDirectory)**\*.cs" Exclude="$(MSBuildThisFileDirectory)bin\**;$(MSBuildThisFileDirectory)obj\**">
      <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
    </Compile>
  </ItemGroup>

  <ItemGroup Condition="!$(UseMSChart)">
    <Compile Remove="..\FastReport.BaseExt\MSChart\**" />
    <Compile Remove="..\FastReport.BaseExt\Import\RDL\**" />
  </ItemGroup>

  <ItemGroup>
    <EmbeddedResource Include="..\FastReport\Resources\**"
                      Exclude="..\FastReport\Resources\Ribbon\**;..\FastReport\Resources\MSChart\**;..\FastReport\Resources\Images\**;..\FastReport\Resources\**\*.cur;..\FastReport\Resources\**\*.frx;..\FastReport\Resources\buttons.png;..\FastReport\Resources\buttons-1.png;..\FastReport\Resources\buttons-1-hi.png;..\FastReport\Resources\labels.dat;">
      <Link>Resources\%(RecursiveDir)%(Filename)%(Extension)</Link>    
    </EmbeddedResource>
    <!-- For online designer -->
    <EmbeddedResource Include="..\FastReport\Resources\MSChart\*.xml">
      <Link>Resources\MSChart\%(Filename)%(Extension)</Link>
    </EmbeddedResource>
  </ItemGroup>

  <ItemGroup>
    <Compile Include="..\FastReport.OpenSource\**\*.cs"
             Exclude="..\FastReport.OpenSource\obj\**;..\FastReport.OpenSource\bin\**;..\FastReport.OpenSource\**\*.OpenSource.cs">
      <Link>%(RecursiveDir)%(Filename)%(Extension)</Link>
    </Compile>
  </ItemGroup>

  <!--Import version-info of referenced packages-->
  <Import Project="..\UsedPackages.version" />

  <ItemGroup Condition="'$(TargetFrameworkIdentifier)'=='.NETStandard'">
    <PackageReference Include="System.Security.Permissions" Version="$(SystemSecurityPermissionsVersion)" />
    <PackageReference Include="System.Security.Cryptography.Pkcs" Version="$(SystemSecurityCryptographyPkcsVersion)" />
    <PackageReference Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesVersion)" />
    <PackageReference Include="Microsoft.CSharp" Version="$(MicrosoftCSharpVersion)" />
  </ItemGroup>

  <ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
    <PackageReference Include="System.Security.Cryptography.Pkcs" Version="$(SystemSecurityCryptographyPkcsVersion)" />
  </ItemGroup>

  <ItemGroup>
    <None Include="..\license.md">
      <Pack>True</Pack>
      <PackagePath></PackagePath>
    </None>
    <None Include="..\Pack\frlogo192.png">
      <Pack>True</Pack>
      <PackagePath></PackagePath>
    </None>
    <None Include="..\Pack\$(MSBuildProjectName)\**\*.*">
      <Visible>false</Visible>
      <Pack>True</Pack>
      <PackagePath></PackagePath>
    </None>
  </ItemGroup>

</Project>