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

  <Target Name="BuildRegorusFFI">
    <Exec Command="cargo build -r --manifest-path ../ffi/Cargo.toml" />
    <Copy SourceFiles="../ffi/RegorusFFI.g.cs" DestinationFolder="." />
    <ItemGroup>
        <RegorusDylib Include="..\..\target\release\*regorus_ffi*" />
    </ItemGroup>    
    <Copy SourceFiles="@(RegorusDylib)" DestinationFolder="." />
  </Target>


  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <RootNamespace>regorus_test</RootNamespace>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>



</Project>
