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

  <PropertyGroup>
    <Version>1.2.1.1</Version>
    <TargetFrameworks>net8.0;net462</TargetFrameworks>
    <BaseOutputPath>..\.\.Output</BaseOutputPath>
    <GeneratePackageOnBuild>True</GeneratePackageOnBuild>
    <Title>SereinFow</Title>
    <Description>动态节点流、可视化编辑的基本依赖，支持导入C# DLL生成自定义节点，提供二次开发支持，适合用于可视化编程和流程设计</Description>
    <PackageReadmeFile>README.md</PackageReadmeFile>
    <RepositoryUrl>https://github.com/fhhyyp/serein-flow</RepositoryUrl>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
    <PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
    <LangVersion>latest</LangVersion>
    <SatelliteResourceLanguages>no</SatelliteResourceLanguages>


    <Optimize>true</Optimize>

    <GenerateDocumentationFile>true</GenerateDocumentationFile>
    <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
    <CompilerGeneratedFilesOutputPath>.\obj\g</CompilerGeneratedFilesOutputPath>
  </PropertyGroup>

  <ItemGroup>
    <Compile Remove="Http\**" />
    <Compile Remove="Network\Socket\**" />
    <Compile Remove="Utils\SerinExpression\**" />
    <EmbeddedResource Remove="Http\**" />
    <EmbeddedResource Remove="Network\Socket\**" />
    <EmbeddedResource Remove="Utils\SerinExpression\**" />
    <None Remove="Http\**" />
    <None Remove="Network\Socket\**" />
    <None Remove="Utils\SerinExpression\**" />
  </ItemGroup>

  <ItemGroup>
    <Compile Remove="FlowNode\Attribute.cs" />
    <Compile Remove="FlowNode\NodeModelBaseData.cs" />
    <Compile Remove="FlowNode\NodeModelBaseFunc.cs" />
    <Compile Remove="FlowNode\ScriptFlowApi.cs" />
    <Compile Remove="Utils\NativeDllHelper.cs" />
  </ItemGroup>

  <ItemGroup>

    <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.13.0" />
    <PackageReference Include="Microsoft.Extensions.ObjectPool" Version="9.0.0" />
    <PackageReference Include="System.IO.Ports" Version="9.0.7" />
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    <PackageReference Include="System.Reactive" Version="6.0.1" />
    <PackageReference Include="System.Threading.Channels" Version="8.0.0" />
    <PackageReference Include="System.ValueTuple" Version="4.3.0" />
  </ItemGroup>

  <ItemGroup>
    <None Include="..\LICENSE">
      <Pack>True</Pack>
      <PackagePath>\</PackagePath>
    </None>
    <None Include="..\README.md">
      <Pack>True</Pack>
      <PackagePath>\</PackagePath>
    </None>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Serein.Library.MyGenerator\Serein.Library.NodeGenerator.csproj " OutputItemType="Analyzer" />
  </ItemGroup>

</Project>
