csc.dll exited with code 1
See original GitHub issueFrom @ryanbrandenburg on February 9, 2018 19:58
Steps to reproduce
- dotnet new mvc
- Add
.AddFormatterMappings(m => {);between.AddMvc()and.SetCompatibilityVersionin ‘Startup.cs’. - dotnet run
Expected behavior
I would expect to get an informative error message about the mistakes I’ve just made (leaving off a trailing “}” and adding a “;”, then trying to call .SetCompatibilityVersion.).
Actual behavior
It returns:
/home/rybrande/dotnet/sdk/2.1.300-preview1-008030/Roslyn/Microsoft.CSharp.Core.targets(84,5): error MSB6006: "csc.dll" exited with code 1. [/home/rybrande/functional/src/Fail/Fail.csproj]
The build failed. Please fix the build errors and run again.
with no other identifying or helpful information.
Environment data
dotnet --info output:
.NET Command Line Tools (2.1.300-preview1-008030)
Product Information:
Version: 2.1.300-preview1-008030
Commit SHA-1 hash: be228a492f
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /home/rybrande/dotnet/sdk/2.1.300-preview1-008030/
Microsoft .NET Core Shared Framework Host
Version : 2.1.0-preview1-26207-04
Build : f2c3216183d20416568a4bbf5bb7d153e826f153
Ubuntu 16.04
Found while doing aspnet/Release#215.
Copied from original issue: dotnet/cli#8581
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
"dotnet build" command fails with error MSB6006: "csc.exe ...
Most of the projects in the solution build; however, two projects fail with this error message: error MSB6006: "csc.exe" exited with code 1....
Read more >"csc.dll" exited with code 137 - SonarQube
We are trying to use the SonarQube v5.5 extension in our Azure DevOps pipelines. The build runs fine as long as we do...
Read more >dotnet build failes on shared runners (#6621) · Issues
C:\Program Files\dotnet\sdk\3.1.101\Roslyn\Microsoft.CSharp.Core.targets(59,5): error MSB6006: "csc.dll" exited with code -1073741523.
Read more >error MSB6006: "csc.exe" exited with code -2146232797.
I have just upgraded to verson 16.3. ... 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Roslyn\Microsoft.
Read more >Anyone managed to use dotnet sdk 6 on debian 10 / termux?
Whenever I run dotnet build I'm getting error MSB6006: "csc.dll" exited with code 139 in Ubuntu arm64 using proot-distro but it works in...
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 Free
Top 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
@jaredpar The bug appears to be in the task. Proposed #24812 as a fix; I think this bug should be reactivated and the MSBuild bug closed as a dupe.
Closing as a dupe of https://github.com/Microsoft/msbuild/issues/2872. That appears to be the issue here.