Skip to content

csc.exe and VBCSCompiler.exe crash in coreclr.dll (0xc0000005) on .NET 10 SDK #10177

Closed as duplicate

Description

@grzegorzcierpka

URL(s)

https://learn.microsoft.com/pl-pl/visualstudio/releases/2026/release-notes
https://dotnet.microsoft.com/en-us/download/dotnet/10.0

Description

Description
I have installed Visual Studio 2026 Enterprise and the .NET 10 SDK. I am experiencing a hard crash whenever I attempt to build a new, empty Class Library project targeting .NET 10.

Both csc.exe (the compiler driver) and VBCSCompiler.exe (the build server) crash with an Access Violation (0xc0000005). The Windows Event Viewer logs indicate the faulting module is coreclr.dll.

Steps to Reproduce

Install Visual Studio 2026 Enterprise with .NET 10 workload.

Create a new empty "Class Library" project targeting .net10.0.

Run dotnet build (or Build in VS).

Actual Behavior
The build fails immediately. Output in Visual Studio / CLI:
Error (active) MSB6006 "csc.exe" exited with code -1073741819. File: ...\Microsoft.CSharp.Core.targets Line: 84

Event Viewer Logs
I have retrieved the crash details from Windows Event Viewer. Both processes crash in coreclr.dll with the same offset.

Log 1: VBCSCompiler.exe crash
Faulting application name: VBCSCompiler.exe, version: 5.0.25.52411, time stamp: 0x68fa0000 Faulting module name: coreclr.dll, version: 10.0.25.52411, time stamp: 0x68fabec4 Exception code: 0xc0000005 Fault offset: 0x00000000000aa8e4 Faulting process id: 0x3b6c Faulting application path: C:\Program Files\dotnet\sdk\10.0.100\Roslyn\bincore\VBCSCompiler.exe Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0\coreclr.dll

Log 2: csc.exe crash
Faulting application name: csc.exe, version: 5.0.25.52411, time stamp: 0x68fa0000 Faulting module name: coreclr.dll, version: 10.0.25.52411, time stamp: 0x68fabec4 Exception code: 0xc0000005 Fault offset: 0x00000000000aa8e4 Faulting process id: 0x163c Faulting application path: C:\Program Files\dotnet\sdk\10.0.100\Roslyn\bincore\csc.exe Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0\coreclr.dll

Environment data

  • Visual Studio: Visual Studio 2026 Enterprise
  • .NET SDK: 10.0.100
  • Runtime (CoreCLR): 10.0.25.52411
  • OS: Windows x64

dotnet --info

`.NET SDK:
 Version:           10.0.100
 Commit:            b0f34d51fc
 Workload version:  10.0.100-manifests.5fb86115
 MSBuild version:   18.0.2+b0f34d51f

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22000
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\10.0.100\

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
  Version:      10.0.0
  Architecture: x64
  Commit:       b0f34d51fc

.NET SDKs installed:
  10.0.100 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 10.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 10.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 10.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  DOTNET_CLI_UI_LANGUAGE                   [en-US]
  DOTNET_GCHeapCount                       [2]
  DOTNET_GCNoAffinitize                    [1]
  DOTNET_MULTILEVEL_LOOKUP                 [0]
  DOTNET_TC_CallCountThreshold             [1000]
  DOTNET_ThreadPool_UnfairSemaphoreSpinLimit [0]
  DOTNET_gcConcurrent                      [0]
  Detected COMPlus_* environment variable(s). Consider transitioning to DOTNET_* equivalent.

global.json file:
  Not found`

Activity

  1. Kanat9494 commented on Nov 28, 2025

    @Kanat9494

    I have the same error with dotnet maui

  2. wd-mutasim commented on Dec 5, 2025

    @wd-mutasim

    Try disable CET

    <CETCompat>false</CETCompat>

    CET supported by default

  3. kadiva commented on Dec 6, 2025

    @kadiva

    I have the same error in any projects with SDK .NET 10.0.100 on Windows 10 22H2

  4. Kanat9494 commented on Dec 6, 2025

    @Kanat9494

    I just updated windows 10 and after that all .net 10 works as well

  5. ouzieblo commented on Dec 9, 2025

    @ouzieblo

    I recently installed .net 10.0.100 on 24 of my test machines and updated my test application to .net 10 and selected to publish it as framework dependent.
    It crashes on 2/24 machines with the same issue as reported here.
    I am able to reproduce the same crash with a simple "hello world" application.

    Crash creates event log like below:

    Faulting application name: HelloWorld10.exe, version: 1.0.0.0, time stamp: 0x68fa0000
    Faulting module name: coreclr.dll, version: 10.0.25.52411, time stamp: 0x68fabec4
    Exception code: 0xc0000005
    Fault offset: 0x00000000000aa8e4
    Faulting process id: 0x2ffc
    Faulting application start time: 0x01dc68e2810d129e
    Faulting module path: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.0\coreclr.dll
    Report Id: 3ec8c664-1c9d-418a-9201-e0baeb0f7697
    

    I confirm that disabling CET in .csproj file:
    <CETCompat>false</CETCompat>
    Resolves this issue - my simple hello world now works without crash on the same machine.

  6. jjonescz commented on Dec 11, 2025

    @jjonescz
    Member

    Looks like a duplicate of dotnet/runtime#121596.

  7. wd-mutasim commented on Dec 11, 2025

    @wd-mutasim

    Looks like a duplicate of dotnet/runtime#121596.

    Yes, it's the same issue
    I found that workaround after dozens of attempts.
    other one is publish using win-x86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions