Roslyn: Microsoft.CSharp.Core.targets(59,5): error on linux.

Created on 20 Jun 2019  路  6Comments  路  Source: dotnet/roslyn

I used travis-ci to build project.
Here is the build configuration:

language: csharp
solution: Natasha.sln
mono: none
dotnet: 2.2
dist: xenial
sudo: required

before_install:
  - sudo apt-get install nuget

env:
  global:
    - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
    - DOTNET_CLI_TELEMETRY_OPTOUT: 1

install:
  - dotnet restore

script:
  - dotnet build -c Release

Here is the error message: build--log
You can turn to the bottom few lines.

/home/travis/.nuget/packages/microsoft.net.compilers/3.1.1/tools/Microsoft.CSharp.Core.targets(59,5): error : Got a SIGABRT while executing native code. This usually indicates [/home/travis/build/dotnetcore/Natasha/Natasha/Natasha.csproj] /home/travis/.nuget/packages/microsoft.net.compilers/3.1.1/tools/Microsoft.CSharp.Core.targets(59,5): error : a fatal error in the mono runtime or one of the native libraries ...................

How can I solve this problem?

Area-Compilers

Most helpful comment

Same problem as https://github.com/dotnet/roslyn/issues/36705, Microsoft.Net.Compilers is a Windows-only package. Closing as duplicate

All 6 comments

This looks to be a mono bug? which version of mono are you using?

@jmarolf

I used commnad : "mono: none". But I found the log:

Selecting previously unselected package mono-gac.
Preparing to unpack .../mono-gac_4.2.1.102+dfsg2-7ubuntu4_all.deb ...
Unpacking mono-gac (4.2.1.102+dfsg2-7ubuntu4) ...

Selecting previously unselected package mono-runtime-common.
Preparing to unpack .../mono-runtime-common_4.2.1.102+dfsg2-7ubuntu4_amd64.deb ...
Unpacking mono-runtime-common (4.2.1.102+dfsg2-7ubuntu4) ...

Selecting previously unselected package mono-runtime-sgen.
Preparing to unpack .../mono-runtime-sgen_4.2.1.102+dfsg2-7ubuntu4_amd64.deb ...
Unpacking mono-runtime-sgen (4.2.1.102+dfsg2-7ubuntu4) ...

Selecting previously unselected package mono-runtime.
Preparing to unpack .../mono-runtime_4.2.1.102+dfsg2-7ubuntu4_amd64.deb ...
Unpacking mono-runtime (4.2.1.102+dfsg2-7ubuntu4) ...
dotnet --info

.NET Core SDK (reflecting any global.json):
 Version:   2.2.300
 Commit:    73efd5bd87

Runtime Environment:

 OS Name:     ubuntu
 OS Version:  16.04
 OS Platform: Linux
 RID:         ubuntu.16.04-x64
 Base Path:   /usr/share/dotnet/sdk/2.2.300/

Host (useful for support):

  Version: 2.2.5
  Commit:  0a3c9209c0

.NET Core SDKs installed:

  2.2.300 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:

  Microsoft.AspNetCore.All 2.2.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

/home/travis/.nuget/packages/microsoft.net.compilers/3.1.1/tools/Microsoft.CSharp.Core.targets(59,5): error : Got a SIGABRT while executing native code.

@jmarolf "error MSB3883: Unexpected exception: " is an old error. But how to sove it? It should be an environmental problem, but I don't know what's missing.

Same problem as https://github.com/dotnet/roslyn/issues/36705, Microsoft.Net.Compilers is a Windows-only package. Closing as duplicate

Ah, good catch. Thanks
@NMSAzulX I think the recommendation is to use the Microsoft.Net.Compilers.Toolset package instead (that one is cross-platform, if I understand properly).

@jcouv @agocke Thank you~

Was this page helpful?
0 / 5 - 0 ratings