Skip to content

Commit

Permalink
Update .net build configuration (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
picoliu authored Feb 11, 2025
1 parent 46ab14a commit ce74a26
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
47 changes: 26 additions & 21 deletions binding/dotnet/PvRecorder/PvRecorder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>net8.0;net6.0;netcoreapp3.0;netstandard2.0</TargetFrameworks>
<Version>1.2.9</Version>
<Version>1.2.10</Version>
<Authors>Picovoice</Authors>
<Company />
<Product>PvRecorder</Product>
Expand All @@ -16,21 +16,22 @@
<Description>PvRecorder is a cross-platform audio recorder for .NET designed for real-time processing.</Description>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageIcon>pv_circle_512.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<!--Target files-->
<ItemGroup>
<Content Include="PvRecorder.netstandard2.0.targets">
<PackagePath>
build/netstandard2.0/PvRecorder.targets;
buildTransitive/netstandard2.0/PvRecorder.targets;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="PvRecorder.targets">
<PackagePath>
build/netcoreapp3.0/PvRecorder.targets;
build/net6.0/PvRecorder.targets;
build/net8.0/PvRecorder.targets;
buildTransitive/netcoreapp3.0/PvRecorder.targets;
buildTransitive/net6.0/PvRecorder.targets;
buildTransitive/net8.0/PvRecorder.targets;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand All @@ -40,21 +41,21 @@
<ItemGroup>
<Content Include="..\..\..\lib\windows\amd64\libpv_recorder.dll">
<PackagePath>
build/netstandard2.0/libpv_recorder.dll;
build/netcoreapp3.0/lib/windows/amd64/libpv_recorder.dll;
build/net6.0/lib/windows/amd64/libpv_recorder.dll;
build/net8.0/lib/windows/amd64/libpv_recorder.dll;
buildTransitive/netstandard2.0/libpv_recorder.dll;
buildTransitive/netcoreapp3.0/lib/windows/amd64/libpv_recorder.dll;
buildTransitive/net6.0/lib/windows/amd64/libpv_recorder.dll;
buildTransitive/net8.0/lib/windows/amd64/libpv_recorder.dll;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\windows\amd64\libpv_recorder.dll</Link>
<Visible>false</Visible>
</Content>
<Content Include="..\..\..\lib\mac\x86_64\libpv_recorder.dylib">
<PackagePath>
build/netstandard2.0/libpv_recorder.dylib;
build/netcoreapp3.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net6.0/lib/mac/x86_64/libpv_recorder.dylib;
build/net8.0/lib/mac/x86_64/libpv_recorder.dylib;
buildTransitive/netstandard2.0/libpv_recorder.dylib;
buildTransitive/netcoreapp3.0/lib/mac/x86_64/libpv_recorder.dylib;
buildTransitive/net6.0/lib/mac/x86_64/libpv_recorder.dylib;
buildTransitive/net8.0/lib/mac/x86_64/libpv_recorder.dylib;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\mac\x86_64\libpv_recorder.dylib</Link>
Expand All @@ -66,35 +67,35 @@
<ItemGroup>
<Content Include="..\..\..\lib\windows\arm64\libpv_recorder.dll">
<PackagePath>
build/net6.0/lib/windows/arm64/libpv_recorder.dll;
build/net8.0/lib/windows/arm64/libpv_recorder.dll;
buildTransitive/net6.0/lib/windows/arm64/libpv_recorder.dll;
buildTransitive/net8.0/lib/windows/arm64/libpv_recorder.dll;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\windows\arm64\libpv_recorder.dll</Link>
<Visible>false</Visible>
</Content>
<Content Include="..\..\..\lib\linux\x86_64\libpv_recorder.so">
<PackagePath>
build/net6.0/lib/linux/x86_64/libpv_recorder.so;
build/net8.0/lib/linux/x86_64/libpv_recorder.so;
buildTransitive/net6.0/lib/linux/x86_64/libpv_recorder.so;
buildTransitive/net8.0/lib/linux/x86_64/libpv_recorder.so;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\linux\x86_64\libpv_recorder.so</Link>
<Visible>false</Visible>
</Content>
<Content Include="..\..\..\lib\mac\arm64\libpv_recorder.dylib">
<PackagePath>
build/net6.0/lib/mac/arm64/libpv_recorder.dylib;
build/net8.0/lib/mac/arm64/libpv_recorder.dylib;
buildTransitive/net6.0/lib/mac/arm64/libpv_recorder.dylib;
buildTransitive/net8.0/lib/mac/arm64/libpv_recorder.dylib;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\mac\arm64\libpv_recorder.dylib</Link>
<Visible>false</Visible>
</Content>
<Content Include="..\..\..\lib\raspberry-pi\**\*" Exclude="..\..\..\lib\raspberry-pi\arm11\*">
<PackagePath>
build/net6.0/lib/raspberry-pi;
build/net8.0/lib/raspberry-pi;
buildTransitive/net6.0/lib/raspberry-pi;
buildTransitive/net8.0/lib/raspberry-pi;
</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>lib\raspberry-pi\%(RecursiveDir)%(Filename)%(Extension)</Link>
Expand All @@ -111,5 +112,9 @@
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>README.md</PackagePath>
</None>
</ItemGroup>
</Project>
5 changes: 0 additions & 5 deletions binding/dotnet/PvRecorder/PvRecorder.netstandard2.0.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,5 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</Content>
<Content Include="$(MSBuildThisFileDirectory)libpv_recorder.so">
<Link>libpv_recorder.so</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
</Content>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions binding/dotnet/PvRecorder/PvRecorder.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)lib/**">
<PackagePath>content/picovoice/%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
<Link>lib/%(RecursiveDir)%(Filename)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Visible>false</Visible>
Expand Down

0 comments on commit ce74a26

Please sign in to comment.