|
Linux does not come with the .NET runtime pre-installed.
If you have not installed it and you try to publish with
self-contained false, then you will get an error when you try and
run the executable. Something similar to this.
You must install .NET to run this
application.
App: /home/pcuser/helloworld/helloworld
Architecture: x64
App host version: 6.0.22
.NET location: Not found
Publishing with self-contained true is a good alternative if
your chosen runtime is not easily available on your distro. It
increases the output size by about 60 MB but provides a simple
solution.
Details of how to install the runtime may be found here.
If you are using .NET 10 you might need the following. However the
process does vary by platform so you may need to check the
Microsoft documentation.
sudo apt update
sudo apt install dotnet-runtime-10.0
If you are using ABCChrome then you may need to install a few
extra packages.
# for Ubuntu 22 and 23
sudo apt install -y libasound2 libnss3 libcurl4
# for Ubuntu 24 to 26
sudo apt install -y libasound2t64 libnss3 libcurl4t64
# for Ubuntu 22 only - not needed on 23 to 26
sudo apt install -y xserver-xorg-core --no-install-recommends
--no-install-suggests
sudo apt install -y libcairo2 libatk1.0-0 libatk-bridge2.0-0
libcups2 libxcomposite1 libxdamage1 libxrandr2 libxkbcommon0
libpango-1.0-0
While ABCpdf does not officially support Debian Linux, here are
the additional packages ABCChrome requires.
# for Debian Linux 12.7 - much the
same as Ubuntu 22
sudo apt install -y libasound2 libnss3 libcurl4
sudo apt install -y xserver-xorg-core --no-install-recommends
--no-install-suggests
sudo apt install -y libcairo2 libatk1.0-0 libatk-bridge2.0-0
libcups2 libxcomposite1 libxdamage1 libxrandr2 libxkbcommon0
libpango-1.0-0
# and also...
sudo apt install -y libglib2.0-0
While ABCpdf does not officially support Fedora Linux, here are
the additional packages ABCChrome requires.
# for Fedora Linux 40
sudo dnf install -y alsa-lib mesa-libgbm cairo atk at-spi2-atk
cups-libs libXcomposite libXdamage libXrandr pango
As always a judicious use of ldd will reveal any other missing
packages you may require. Run against files like libABCpdf14-64.so
and libChakraCore64.so but also against the
ABCChrome146/ABCChrome146 executable if you are using the ABCChrome
HTML engine.
|