Closed NoelFB closed 5 months ago
For example if you run dotnet publish -r win-x64 from Linux it will copy the linux FMOD libs to the publish directory, instead of the Windows ones. These entries need to check for the target platform, not the current one:
dotnet publish -r win-x64
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('Linux'))"> <Content Include="Source/Audio/FMOD/libs/lib64/**" CopyToOutputDirectory="PreserveNewest" Link="%(Filename)%(Extension)" /> </ItemGroup> <ItemGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))"> <Content Include="Source/Audio/FMOD/libs/x64/**" CopyToOutputDirectory="PreserveNewest" Link="%(Filename)%(Extension)" /> </ItemGroup> <ItemGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))"> <Content Include="Source/Audio/FMOD/libs/osx/**" CopyToOutputDirectory="PreserveNewest" Link="%(Filename)%(Extension)" /> </ItemGroup>
For example if you run
dotnet publish -r win-x64
from Linux it will copy the linux FMOD libs to the publish directory, instead of the Windows ones. These entries need to check for the target platform, not the current one: