<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <AssemblyName>FastReport.Web</AssemblyName>
    <RootNamespace>FastReport.Web.Blazor</RootNamespace>

    <OutputType>Library</OutputType>
    <RazorLangVersion>3.0</RazorLangVersion>
    <DefineConstants>$(DefineConstants);BLAZOR</DefineConstants>

    <CoreWebDir>..\FastReport.Core.Web</CoreWebDir>
    
    <Authors>Fast Reports Inc.</Authors>
    <Company>Fast Reports Inc.</Company>
    <Copyright>Fast Reports Inc.</Copyright>
    
    <IsPackable>true</IsPackable>
    <PackageIcon>frlogo192.png</PackageIcon>
    <PackageProjectUrl>https://www.fast-report.com/en/product/fast-report-net</PackageProjectUrl>
    <PackageLicenseFile>license.md</PackageLicenseFile>
    <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>

    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>../FastReport.Net.snk</AssemblyOriginatorKeyFile>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='Demo'">
    <DemoDescription>The full version of the package is available in FastReport.Net at https://www.fast-report.com/en/product/fast-report-net</DemoDescription>
  </PropertyGroup>
  <PropertyGroup>
    <Description>FastReport.Net is a full-featured reporting solution for .Net Core. 
Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 25 types of barcodes, table object, diagram, maps, shapes, line, PolyLine, Polygon and many more. 
FastReport.Net supports export to various popular formats, such as PDF/A, Excel, Word, Open Office, HTML, CSV, Json, XAML, ZPL, etc.

This package includes Razor components for Blazor Server. Located in FastReport.Web.Blazor.Components namespace.

$(DemoDescription)</Description>
  </PropertyGroup>

  <!--Import FastReport.Web source code-->
  <ItemGroup>
    <Compile Include="$(CoreWebDir)\**\*.cs" Exclude="$(CoreWebDir)\bin\**;$(CoreWebDir)\obj\**" />
    <Compile Include="..\FastReport.Web.Base\*.cs">
      <Link>Application\%(Filename)%(Extension)</Link>
    </Compile>
    <!--Embedded resources for support classic render-->
    <EmbeddedResource Include="$(CoreWebDir)\Resources\**">
      <Link>Resources\%(RecursiveDir)%(Filename)%(Extension)</Link>
      <LogicalName>$(AssemblyName).Resources.%(Filename)%(Extension)</LogicalName>
    </EmbeddedResource>
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="obj\**" />
    <None Remove="obj\**"/>
    <Content Remove="obj\**" />
  </ItemGroup>

  <Import Project="..\UsedPackages.version" />

  <ItemGroup Condition="!$(Designer)">
    <Compile Remove="Controllers\DesignerController.cs" />
    <Compile Remove="Application\WebReportDesigner.cs" />
    <Compile Remove="Application\DesignerSettings.cs" />
  </ItemGroup>
  <PropertyGroup Condition="$(Designer)">
    <DefineConstants>$(DefineConstants);DESIGNER</DefineConstants>
  </PropertyGroup>

  <ItemGroup Condition="!$(Dialogs)">
    <Compile Remove="Application/Dialog/**/*.*" />
    <EmbeddedResource Remove="Application/Dialog/**/*.*" />
    <None Remove="Application/Dialog/**/*.*" />
    <Resource Remove="Application/Dialog/**/*.*" />
    <MvcRazorFilesToCompile Remove="Application/Dialog/**/*.razor" />
    <Watch Remove="Application/Dialog/**/*.razor" />
    <RazorCompile Remove="Application/Dialog/**/*.razor" />
    <RazorComponent Remove="Application/Dialog/**/*.razor" />
  </ItemGroup>

  <PropertyGroup Condition="$(Dialogs)">
    <DefineConstants>$(DefineConstants);DIALOGS</DefineConstants>
  </PropertyGroup>

  <ItemGroup>
    <None Include="..\license.md">
      <Pack>True</Pack>
      <Visible>false</Visible>
      <PackagePath></PackagePath>
    </None>
    <None Include="..\Pack\frlogo192.png">
      <Pack>True</Pack>
      <Visible>false</Visible>
      <PackagePath></PackagePath>
    </None>
  </ItemGroup>
  
</Project>
