servicepoint/crates/servicepoint_binding_cs/ServicePoint/ServicePoint.csproj

63 lines
2.6 KiB
XML
Raw Normal View History

2024-05-13 21:17:20 +02:00
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
2024-10-16 22:46:34 +02:00
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>
2024-05-13 21:17:20 +02:00
<PropertyGroup>
<PackageId>ServicePoint</PackageId>
2024-10-16 20:07:52 +02:00
<Version>0.10.0</Version>
2024-05-13 21:17:20 +02:00
<Authors>Repository Authors</Authors>
<Company>None</Company>
<Product>ServicePoint</Product>
2024-05-13 21:17:20 +02:00
<PackageTags>CCCB</PackageTags>
<Description>
C# bindings for the rust crate servicepoint. You will need a suitable native shared library to use this.
For documentation, see the rust documentation: https://docs.rs/servicepoint/latest/servicepoint/.
2024-05-13 21:17:20 +02:00
Note that this library is still in early development. Breaking changes are expected before 1.0 is released.
</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<!-- generate C# bindings -->
<Target Name="BuildBindingsRelease" Condition="'$(Configuration)'=='Release'" BeforeTargets="PrepareForBuild">
2024-05-13 21:17:20 +02:00
<Exec Command="cargo build --release"/>
<Exec Command="cargo build --manifest-path ../../../crates/servicepoint_binding_c/Cargo.toml --release"/>
2024-05-13 21:17:20 +02:00
</Target>
<Target Name="BuildBindingsDebug" Condition="'$(Configuration)'=='Debug'" BeforeTargets="PrepareForBuild">
2024-05-13 21:17:20 +02:00
<Exec Command="cargo build"/>
<Exec Command="cargo build --manifest-path ../../../crates/servicepoint_binding_c/Cargo.toml"/>
2024-05-13 21:17:20 +02:00
</Target>
2024-06-23 16:30:45 +02:00
<!-- include native binary in output -->
2024-05-13 21:17:20 +02:00
<ItemGroup Condition="'$(Configuration)'=='Debug'">
<Content Include="../../../target/debug/libservicepoint_binding_c.so" CopyToOutputDirectory="Always">
<Link>libservicepoint_binding_c.so</Link>
2024-05-13 21:17:20 +02:00
</Content>
</ItemGroup>
<ItemGroup Condition="'$(Configuration)'=='Release'">
<Content Include="../../../target/release/libservicepoint_binding_c.so" CopyToOutputDirectory="Always">
<Link>libservicepoint_binding_c.so</Link>
2024-05-13 21:17:20 +02:00
</Content>
</ItemGroup>
<ItemGroup>
<!-- include link to source code at revision -->
2024-05-26 14:53:26 +02:00
<None Include="../README.md" Pack="true" PackagePath="\"/>
<!-- add README.md to package -->
2024-05-13 21:17:20 +02:00
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>
</Project>