'Copy a file to 2 output directory using csproj dotnetcore

I want to copy a file to 2 output directories using csproj dotnetcore. I use this code, but it just copies the file to the 2nd directory.

<Content Include="lock_screen_linux.desktop" CopyToPublishDirectory="PreserveNewest">
        <LinuxPath>/usr/share/applications/lock_screen_linux.desktop</LinuxPath>
        <LinuxPath>/etc/xdg/autostart/lock_screen_linux.desktop</LinuxPath>
    </Content>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source