.Net publish doesn't copy Linux blink binaries to runtimes folder

When I publish my .Net Core 6 project to a container, the blink binaries are copied to the root of the output path instead of to the runtimes/linux/native folder.

    <PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Linux" Version="21.2.5" />


This occurs locally if I run:

dotnet publish -c Release -r linux-x64 --self-contained


or when I public to a container in my CI pipeline:

- task: DotNetCoreCLI@2
  displayName: 'Publish Container'
  inputs:
    command: 'publish'
    projects: ${{ parameters.buildProjects }}
    publishWebProjects: false
    zipAfterPublish: false
    arguments: >-
      -c ${{ parameters.buildConfiguration }}
      -r linux-x64 --self-contained
      -p PublishProfile=DefaultContainer
      -p ContainerImageTags=$(Build.BuildId)
      -p ContainerRegistry=${{ parameters.containerRegistryHostname }}
      -v normal ${{ parameters.publishArguments }}

6 Replies

SN Santhiya Narayanan Syncfusion Team May 23, 2023 02:37 PM UTC

On further analysis, when publishing the project without setting the runtime identifier (-r linux-x64 --self-contained), it will be published in the same structure.

 

If you want to set the runtime identifier, please set the runtime identifier and set the root folder as blinkpath in the blink converter settings.




BR Burton Rodmam May 23, 2023 03:05 PM UTC

thanks for your reply.


the files in the locales folder are also placed in the root of bin.  should I expect any problems with this?



BR Burton Rodmam May 23, 2023 03:05 PM UTC

also, do you intend to fix this behavior?



SN Santhiya Narayanan Syncfusion Team May 25, 2023 09:41 AM UTC

Queries

Response

the files in the locales folder are also placed in the root of bin.  should I expect any problems with this?

No, we already ensured the conversion with this, there is no issues related to conversion.

 

also, do you intend to fix this behavior?The runtime and native file copying are .NET behavior. So, we could not handle this in our side. 




BR Burton Rodmam June 15, 2023 04:45 PM UTC

do you intend to contact Microsoft about this behavior?



SN Santhiya Narayanan Syncfusion Team June 16, 2023 11:15 AM UTC

The runtime file copying is a.NET behaviour that we can't control, but there is no issue in our conversion due to the file copying structure. Whether we set the runtime behaviour or not, it will work properly in the Volume 2 release.


Loader.
Up arrow icon