Occur "Build FAILED" error at building on .NET Core on Linux
See original GitHub issueOccur 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:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Hmm, it’s no use…?