You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set up the env: use ubuntu 23.04 and install dotnet 7.0.302 SDK (respective Dockerfile for running the repro in this env is provided)
Build the project: dotnet build .
Received the error: /usr/share/dotnet/sdk/7.0.302/Roslyn/Microsoft.CSharp.Core.targets(80,5): error MSB6006: "csc.dll" exited with code 139. [/TestMini/TestMini.csproj]
I suspect that the problem is not reproducible on every environment, so I provided a minimal repro with a Dockerfile, which is based on ubuntu:23.04, it then installs dotnet deps (as listed in the offficial docs), installs dotnet 7.0.302 SDK via dotnet-install.sh script. In this env I was able to reproduce the error by running dotnet build . from container.
Repo: https://github.com/waynesayonara/csc-err-139-repro
Expected Behavior:
Project builds successfully Actual Behavior:
wayne@wayne-B11:~/t/TestMini$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c0ca95498796 009f34774294 "tail -f /dev/null" 6 seconds ago Up 5 seconds peaceful_goldwasser
wayne@wayne-B11:~/t/TestMini$ docker exec -it c0ca95498796 bash
root@c0ca95498796:/# dotnet build .
Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.302
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
MSBuild version 17.6.1+8ffc3fe3d for .NET
Determining projects to restore...
Restored /TestMini/TestMini.csproj (in 56 ms).
/usr/share/dotnet/sdk/7.0.302/Roslyn/Microsoft.CSharp.Core.targets(80,5): error MSB6006: "csc.dll" exited with code 139. [/TestMini/TestMini.csproj]
Build FAILED.
/usr/share/dotnet/sdk/7.0.302/Roslyn/Microsoft.CSharp.Core.targets(80,5): error MSB6006: "csc.dll" exited with code 139. [/TestMini/TestMini.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.71
root@c0ca95498796:/# exit
exit
The text was updated successfully, but these errors were encountered:
Version Used:
7.0.302
Steps to Reproduce:
Dockerfile
for running the repro in this env is provided)dotnet build .
/usr/share/dotnet/sdk/7.0.302/Roslyn/Microsoft.CSharp.Core.targets(80,5): error MSB6006: "csc.dll" exited with code 139. [/TestMini/TestMini.csproj]
I suspect that the problem is not reproducible on every environment, so I provided a minimal repro with a
Dockerfile
, which is based on ubuntu:23.04, it then installs dotnet deps (as listed in the offficial docs), installs dotnet 7.0.302 SDK viadotnet-install.sh
script. In this env I was able to reproduce the error by runningdotnet build .
from container.Repo: https://github.com/waynesayonara/csc-err-139-repro
Expected Behavior:
Project builds successfully
Actual Behavior:
The text was updated successfully, but these errors were encountered: