# Dotnet publish includes 4 large librdkafka.so files

**URL:** <https://forum.confluent.io/t/dotnet-publish-includes-4-large-librdkafka-so-files/9562>\
**Category:** Containers\
**Created:** [17 December 2023 04:08 UTC](https://forum.confluent.io/t/dotnet-publish-includes-4-large-librdkafka-so-files/9562 "2023-12-17T04:08:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfarris](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@kfarris](https://forum.confluent.io/u/kfarris)\
**Post date:** [17 December 2023 04:08 UTC](https://forum.confluent.io/t/dotnet-publish-includes-4-large-librdkafka-so-files/9562/1 "2023-12-17T04:08:23Z")

</div>

I’m running dotnet8 aspnet docker images, and when I run dotnet publish before creating my image, there are 4 librdkafka.so files (centos6-\* centos7-\* alpine-\*) that are all over 8 MB and account for 1/2 the size of my image. Are all 4 of these needed? Is there a a way to only include the correct one when publishing. I’m simply referencing Confluent.Kafka 2.3 nuget package.

---

<div class="post-metadata">

**Author:** ![stylianosnicoletti](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/stylianosnicoletti/32/3666_2.png) [@stylianosnicoletti](https://forum.confluent.io/u/stylianosnicoletti)\
**Post date:** [8 March 2024 17:24 UTC](https://forum.confluent.io/t/dotnet-publish-includes-4-large-librdkafka-so-files/9562/2 "2024-03-08T17:24:59Z")

</div>

Hi am facing exaxtly the same issue. Any update on this?
