Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1546,5 +1546,26 @@ N> We have option to exclude the default Blink binaries from the installation pa

</PackageReference>

{% endhighlight %}
{% endtabs %}

## How to Exclude BlinkBinaries or Runtime Files in Build or Deployment

The runtime files, or blink binaries, will be copied into a bin or published folder while building and publishing the application.
By including the <ExcludeAssets>native</ExcludeAssets> option in the package reference of the csproj file, you can exclude the runtime files or blink binaries from being copied into the bin or publish folder while building and publishing the application. But you need to place the BlinkBinaries in the server disk and set the BlinkPath in the BlinkConverterSettings to perform the conversion.

N> Using this approach, you can reduce the deployment size on your own servers.

Refer to the following package reference:

{% tabs %}
{% highlight C# %}

<ItemGroup>
<PackageReference Include="Syncfusion.HtmlToPdfConverter.Net.Windows" Version="31.1.23">
<ExcludeAssets>native</ExcludeAssets>
</PackageReference>
</ItemGroup>

{% endhighlight %}
{% endtabs %}