can't build on a mac
See original GitHub issueSteps to reproduce
be on a mac, in a new folder run
dotnet new classlib
dotnet restore
dotnet build
Expected behavior
it to work
Actual behavior
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
/usr/local/share/dotnet/sdk/1.0.1/Roslyn/Microsoft.CSharp.Core.targets(71,5): error MSB6006: "/usr/local/share/dotnet/sdk/1.0.1/Roslyn/RunCsc.sh" exited with code 134. [/Users/me/projects/myproject/myproject.csproj]
Build FAILED.
/usr/local/share/dotnet/sdk/1.0.1/Roslyn/Microsoft.CSharp.Core.targets(71,5): error MSB6006: "/usr/local/share/dotnet/sdk/1.0.1/Roslyn/RunCsc.sh" exited with code 134. [/Users/my/projects/myproject/myproject.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:01.48
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.1
cc @knownasilya and @guidos who are also having this problem
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Base build is not compatible for this install method
I'm getting an error trying to upgrade my macOS on my M1 Mac Mini to 13.4.1. First time i've had this problem. 'The...
Read more >Mac Unity Build (from a PC) not opening on Mac
I made the Build for my project for both PC and Mac, however I had massive issues getting the Mac one to actually...
Read more >[SOLVED] - Why can't you build your own Mac PC?
So that's a big NO, you can't legally build your own. But there are a bunch of Enthusiast building their own Hackintosh.
Read more >I can't build solution on vs on Mac, but the same ...
I can't find the these options under vs for Mac. and I make sure all sources code can run and working good under...
Read more >MAC OSX - Can't Build or Place work areas
I have the problem as well, about 90% of the time I cannot build whatever building or work area I try, just get...
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
On Mac
/usr/bin/bash
wouldn’t work, it had to be/bin/bash
(at least on my 10.12.4). IIRC, some linux distros do ship bash in/usr/bin
(but usually have a symlink in/bin
). This is one of the reasons usingenv
to resolve bash is considered more portable as it determines which one the environment prefers based on the$PATH
. See http://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-superior-to-bin-bashIn this case, an installation of bash was registered to replace the system bash so I’d expect all scripts to follow that. It only doesn’t work because this installation has become broken. I don’t think any effort should be made to work around broken installations that trade off portability.
Ok that’s fine, the only thing is just that as it turns out, my
#!/usr/bin/env bash
has been broken for a long time time and I run a lot of bash scripts and this his the first one where it came up so I don’t know how common it actually is in practice