Skip to content

Tag: .net-core

Dotnet core segmentation fault on linux

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. Y…

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…

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 do…

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 sy…