'dotnet build' fails on Ubuntu, redstone 1
See original GitHub issueSteps 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:
- Created 7 years ago
- Reactions:2
- Comments:14 (3 by maintainers)
Top 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 >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
@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.
@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?