question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Occur "Build FAILED" error at building on .NET Core on Linux

See original GitHub issue

Occur building failure at .NET Core on Linux. I’m using following at Debian GNU/Linux sid:

https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x

kiwamu@casper:~/src/IL2C$ cat circle.yml 
version: 2
jobs:
  build:
    working_directory: /temp
    docker:
      - image: microsoft/dotnet:sdk
    environment:
      DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
      DOTNET_CLI_TELEMETRY_OPTOUT: 1
    steps:
      - checkout
      - run: dotnet restore il2c.sln
      - run: dotnet build il2c.sln
kiwamu@casper:~/src/IL2C$ dotnet --version
2.1.3
kiwamu@casper:~/src/IL2C$ dotnet restore il2c.sln
/usr/share/dotnet/sdk/2.1.3/NuGet.targets(227,5): warning MSB3202: The project file "/home/kiwamu/src/IL2C/IL2C/IL2C.csproj" was not found. [/home/kiwamu/src/IL2C/il2c.sln]
/home/kiwamu/src/IL2C/IL2C/IL2C.csproj : warning NU1503: Skipping restore for project '/home/kiwamu/src/IL2C/IL2C/IL2C.csproj'. The project file may be invalid or missing targets required for restore. [/home/kiwamu/src/IL2C/il2c.sln]
Segmentation fault
kiwamu@casper:~/src/IL2C$   Restoring packages for /home/kiwamu/src/IL2C/IL2C.Core/IL2C.Core.csproj...
  Restoring packages for /home/kiwamu/src/IL2C/IL2C.Core.Tests/IL2C.Core.Tests.csproj...

kiwamu@casper:~/src/IL2C$ dotnet build il2c.sln
Microsoft (R) Build Engine version 15.5.179.9764 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

Segmentation fault
kiwamu@casper:~/src/IL2C$ /usr/share/dotnet/sdk/2.1.3/NuGet.targets(227,5): warning MSB3202: The project file "/home/kiwamu/src/IL2C/IL2C/IL2C.csproj" was not found. [/home/kiwamu/src/IL2C/il2c.sln]
/home/kiwamu/src/IL2C/IL2C/IL2C.csproj : warning NU1503: Skipping restore for project '/home/kiwamu/src/IL2C/IL2C/IL2C.csproj'. The project file may be invalid or missing targets required for restore. [/home/kiwamu/src/IL2C/il2c.sln]
  Restoring packages for /home/kiwamu/src/IL2C/IL2C.Core.Tests/IL2C.Core.Tests.csproj...
  Restoring packages for /home/kiwamu/src/IL2C/IL2C.Core/IL2C.Core.csproj...

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kekyocommented, Jan 29, 2018
0reactions
kekyocommented, Jan 30, 2018

I tried adjust configuration…

For .NET Core build, we can build executable file directly with “RuntimeIdentifiers” configuration property. But it’s generate pure executable for both runtime environments.

  • Windows environment: Generate *.exe for native binary (x86, x64) not AnyCPU.
  • Linux environment: Generate executable native binary at built linux environment not PE format.

Hmm, it’s no use…?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build .Net core 3.0 project for linux on windows ...
The issue was because VS code doesn't automatically pull from nuget.org. Creating a Nuget.config file and adding nuget.org package source fixed ...
Read more >
dotnet build -r fails on macOS/Linux, succeeds on Windows ...
Both fail with the following error: error NETSDK1053: Pack as tool does not support self contained. Based on the dotnet --info output (shown ......
Read more >
Troubleshoot .NET package mix ups on Linux
Learn about how to troubleshoot strange .NET package errors on Linux. These errors may occur when you run the dotnet command.
Read more >
Intermittent build failure with "Build FAILED" after "dotnet ...
Occasionally we have build fail at the end of a step that runs dotnet test (.NET Core 2.1 or 3.1 unit tests using...
Read more >
.Net Core / Docker project fails to build in release with ...
Solution builds fine in debug. In release I get bogus errors: I can connect to https://api.nuget.org/v3/index.json just fine and there is no c:\src...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found