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

  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net8.0-windows</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <UseWPF>True</UseWPF>
    <BaseOutputPath>..\.\.Output</BaseOutputPath>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    <!--<IsRoslynComponent>true</IsRoslynComponent>-->
  </PropertyGroup>
  
  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net462|AnyCPU'">
    <NoWarn>1701;1702;1573;CS0414</NoWarn>
  </PropertyGroup>
  
  <ItemGroup>
    <Compile Remove="Node\NodeModel\**" />
    <Compile Remove="Themes\Condition\**" />
    <Compile Remove="Tool\Converters\**" />
    <EmbeddedResource Remove="Node\NodeModel\**" />
    <EmbeddedResource Remove="Themes\Condition\**" />
    <EmbeddedResource Remove="Tool\Converters\**" />
    <None Remove="Node\NodeModel\**" />
    <None Remove="Themes\Condition\**" />
    <None Remove="Tool\Converters\**" />
    <Page Remove="Node\NodeModel\**" />
    <Page Remove="Themes\Condition\**" />
    <Page Remove="Tool\Converters\**" />
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="Converters\TypeToColorConverter.cs" />
    <Compile Remove="MainWindow.xaml.cs" />
    <Compile Remove="MainWindowViewModel.cs" />
    <Compile Remove="Node\FlipflopRegionControl.xaml.cs" />
    <Compile Remove="Node\INodeContainerControl.cs" />
    <Compile Remove="Node\Junction\NodeJunctionViewBase.cs" />
    <Compile Remove="Node\NodeBase.cs" />
    <Compile Remove="Node\ViewModel\ConditionRegionNodeControlViewModel.cs" />
    <Compile Remove="Node\View\ActionRegionControl.xaml.cs" />
    <Compile Remove="Node\View\ConditionRegionControl.xaml.cs" />
    <Compile Remove="Node\View\DllControlControl.xaml.cs" />
    <Compile Remove="Services\NodeControlService.cs" />
    <Compile Remove="Themes\ConditionControl.xaml.cs" />
    <Compile Remove="Themes\ConditionControlModel.cs" />
    <Compile Remove="Themes\ConnectionControl.xaml.cs" />
    <Compile Remove="Themes\ExplicitDataControl.xaml.cs" />
    <Compile Remove="Themes\ObjectViewerControl1.xaml.cs" />
  </ItemGroup>

  <ItemGroup>
    <Page Remove="MainWindow.xaml" />
    <Page Remove="Node\FlipflopRegionControl.xaml" />
    <Page Remove="Node\View\ActionRegionControl.xaml" />
    <Page Remove="Node\View\ConditionRegionControl.xaml" />
    <Page Remove="Node\View\DllControlControl.xaml" />
    <Page Remove="Themes\ConditionControl.xaml" />
    <Page Remove="Themes\ConnectionControl.xaml" />
    <Page Remove="Themes\ExplicitDataControl.xaml" />
    <Page Remove="Themes\MultiConditionConverter.xaml" />
    <Page Remove="Themes\ObjectViewerControl1.xaml" />
  </ItemGroup>

  <ItemGroup>

    <ProjectReference Include="..\Library\Serein.Library.csproj" />
    <ProjectReference Include="..\NodeFlow\Serein.NodeFlow.csproj" />
    <ProjectReference Include="..\Serein.Extend.NewtonsoftJson\Serein.Extend.NewtonsoftJson.csproj" />
    <ProjectReference Include="..\Serein.Script\Serein.Script.csproj" />
  </ItemGroup>
  
  <ItemGroup>
    <Reference Include="WindowsFormsIntegration" />
    <Reference Include="System.Windows.Forms" />
  </ItemGroup>
  
  
  <ItemGroup>
    <PackageReference Include="AvalonEdit" Version="6.3.0.90" />
    <PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.6" />
    <!--<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />-->
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />


    <!--<PackageReference Include="OpenCvSharp4.Extensions" Version="4.10.0.20241108" />-->
    
    <!--<PackageReference Include="Lagrange.Core" Version="0.3.1" />-->
    <!--<PackageReference Include="SixLabors.ImageSharp" Version="3.1.6" />-->
    <!--<PackageReference Include="ZXing.Net.Bindings.ImageSharp" Version="0.16.15" />-->
    
    <!--<PackageReference Include="MySqlConnector" Version="2.4.0" />
    <PackageReference Include="SqlSugarCore" Version="5.1.4.170" />
    <PackageReference Include="SqlSugarCoreNoDrive" Version="5.1.4.171" />-->
    
    <!--<PackageReference Include="LivetCask2" Version="4.0.2" />-->
    <!--<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.39" />-->
  </ItemGroup>

  <ItemGroup>
    <Compile Update="Themes\MethodDetailsControl.xaml.cs">
      <SubType>Code</SubType>
    </Compile>
  </ItemGroup>

</Project>
