Because the official FFmpeg respository doesn’t compile for Windows on ARM by default, I need to add a unofficial build into the project. For all other platforms it works automatically, therefore I only want to add the unofficial build, if the user is building for Windows on ARM.
I tried specifying it in the .csproj file the following way:
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-arm64'"
<Content Include="ffmpeg.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="ffprobe.exe">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
With that attempt, the build works, but the files I want included do not get included. I attempted excluding every other platform with “!=” as well and if I do that, the files do get included, but on every platform, the excluding therefore does no work
If anybody could help me with that, that would be awesome
Otozinclus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.