Skip to content

Tag: .net-6.0

Deploy SkiaSharp on a container running .NET 6 Alpine Linux

SkiaSharp fails at runtime when deployed to an alpine linux container, using .NET 6.0 with the following error: System.TypeInitializationException: The type initializer for ‘SkiaSharp.SKImageInfo’ threw an exception. —> System.DllNotFoundException: Unable to load shared library ‘libSkiaSharp’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibSkiaSharp: cannot open shared object file: No

CentOS .NET Core 6.0 installs wrong runtime version

These are 2 commands I ran trying to install .net core 6.0 on CentOS 8 Stream: Install says it installed 6.0.0-0.6 but the actual version is 6.0.0-rc.2.21470.23 and my app is failing with error: Can it be fixed without manual .net install ? SOLUTION (worked) add repo to the OS: sudo rpm -Uvh change it priority to preceed the

.NET Core Console app on Linux env var NETCORE_ENVIRONMENT – necessary?

Does environment variable NETCORE_ENVIRONMENT=Production mean anything when running a console app ? In core there is ASPNETCORE_ENVIRONMENT=Production – which (as far as I know) changes the app to use appsettings.Production.json. Does NETCORE_ENVIRONMENT exists at all and whats the effect of using it? (I found it in my scripts when I installed 5.0 app almost a year ago, now I