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.

'dotnet build' fails on Ubuntu, redstone 1

See original GitHub issue

Steps to reproduce

On a Windows Anniversary Update machine, follow the steps for Ubuntu 14 to install dotnet CLI:

dotnet new
dotnet restore
dotnet build

Expected behavior

A successfully built project

Actual behavior

A failed build:

dotnet build
Project dotnet (.NETCoreApp,Version=v1.0) will be compiled because expected outputs are missing
Compiling dotnet for .NETCoreApp,Version=v1.0
Success
/usr/share/dotnet/dotnet compile-csc @/home/andrew/dotnet/obj/Debug/netcoreapp1.0/dotnet-compile.rsp returned Exit Code 1

Compilation failed.
    0 Warning(s)
    0 Error(s)

Time elapsed 00:00:00.1061670

Note that although errors and warnings are 0, there is in fact an error printed, and there is no primary output so ‘dotnet run’ fails.

Environment data

dotnet --info output:

dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)

Product Information:
 Version:            1.0.0-preview2-003121
 Commit SHA-1 hash:  1e9d529bc5

Runtime Environment:
 OS Name:     ubuntu
 OS Version:  14.04
 OS Platform: Linux
 RID:         ubuntu.14.04-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
zadjii-msftcommented, Nov 14, 2016

@koenigsbier I found two BashOnWindows issues that are probably the right ones to look at.

https://github.com/Microsoft/BashOnWindows/issues/520 https://github.com/Microsoft/BashOnWindows/issues/1178 (This is probably a dupe)

Not a whole lot of discussion in there, but something to keep your eye on.

2reactions
aliudmilovcommented, Sep 15, 2016

@soeleman The workaround did not work for me: I’m .NET Command Line Tools (1.0.0-preview2-003131) and trying to run on Bash on Ubuntu on Windows. Any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dotnet build on Ubuntu returns code 1
I dug back through the logs and found: Build FAILED. but there are no errors anywhere in the output, and no clue as...
Read more >
dotnet error on ubuntu when trying to compile a cloned repo
I have dotnet 6.0.2 and visual studio code on my linux machine. I am getting the following error after trying to run a...
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 >
[MCL-23025] Failed to Download File error when launching ...
When launching the game, an error is thrown that states: <some file> failed to download. The file that failed to download is not...
Read more >
What dependencies need to be installed to make dotnet ...
I am planning to create build and release pipeline using Ubuntu azure agent. Dotnet Build and Restore commands are failing. My project is...
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