I have used AngleSharp to parse a website in a Dotnet core App It works fine in Windows but on Debian It crashed with this error : Segmantion fault the url that I had for parsing was https when I replaced it with an http url, It worked! Answer The problem caused by conflicting between two version of libssl. You
Tag: .net-core
How do I download a package from the command line with .NET Core from nuget?
Microsoft packages .NET Core on Linux for Ubuntu. I’m currently using that. I now want to install Json.NET which instructs me to use the Package Manager console and run, I’m wondering how I do that Linux. I see that there is a Nuget CLI, but it doesn’t seem like that’s available on .NET Core. Moreover the docs say On Mac
Understanding .Net Core and Mono
When developing an application in .Net Core, the .NET dependencies and DLLs are embedded in the application? does this mean that I do NOT need to install the .Net dependencies on the client PC? If I develop a .Net Core console application for Linux, is it necessary to install Mono on the PC with Linux (client)? Are .Net core applications
SmtpClient.Send not working on linux environment
The following code, written in the .net core 2 environment, works in the windows environment but not in the linux environment. Exception: Failure sending mail. InnerExcepiton: StackTrace: Linux: Ubuntu 16.04.3 LTS This is a console app. Why is not working in linux environment? Answer I thought it was a code error because of the error I had, but it was
.Net Core ignoring Environment Variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE
It seems apparent that you can save some time doing .NET Core builds by setting Environment variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true. I am finding this is not the case on CentOS 7 and Debian Jessie Linux distros. I have a Jenkins slave Docker image, used by Jenkins to build .NET Core services, my image tag is jenkins.slave.dotnet.image. The Jenkins Docker Plugin, uses jenkins.slave.dotnet.image
SonarQube MsBuild scanner on linux build agent
We build or dotnet core 1.1 projects on our own linux build agents in docker. (https://github.com/Microsoft/vsts-agent-docker) We would like to use Sonar to analyze our C# code. But it seems that the SonarQube MsBuild Scanner can’t run in linux environment. Does anybody know a workaround for this. We don’t really want to use Windows agents just to do the code
Bypassing SSL Certificate Validation on DotNet Core Service Stack
I know that ServicePointManager.ServerCertificateValidationCallback no longer exists in .Net Core and is instead replaced with: However we are currently using the ServiceStack.Core library which, as far as I can see, does not expose either a property like this or the handler itself. How would I tell a ServiceStack client to bypass ssl validation in this code? If there is a
Stop a running dotnet core website running on kestrel
When deploying a new version of an existing .net core website. How do I first safely stop the old running kestrel app? Here is an exmaple of what I would like to write (Pseudo deployment script): killall dotnet seems a little unsafe. How would it work if I were hosting two small sites on one box? Answer I have decided
How do I call native Linux and OS X API from .NET Core application?
I need to call file management functions that are not present in .NET Core. How do I call native Linux and Mac OS X API from my C# code? Edit: The only answer to this question doesn’t include any definitive information. Can someone post some code samples or more concrete details about how to invoke Mac OS X APIs from
Cross-platform file name handling in .NET Core
How to handle file name in System.IO classes in a cross-platform manner to make it work on Windows and Linux? For example, I write this code that works perfectly on Windows, however it doesn’t create a file on Ubuntu Linux: Answer Windows using Backslash. Linux using Slash. Path.Combine set the right symbol : Path.Combine Method – MSDN