Repository navigation
Description
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
Kanat9494 commentedon Nov 28, 2025
I have the same error with dotnet maui
wd-mutasim commentedon Dec 5, 2025
Try disable
CET<CETCompat>false</CETCompat>CET supported by default
kadiva commentedon Dec 6, 2025
I have the same error in any projects with SDK .NET 10.0.100 on Windows 10 22H2
Kanat9494 commentedon Dec 6, 2025
I just updated windows 10 and after that all .net 10 works as well
ouzieblo commentedon Dec 9, 2025
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:
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.
jjonescz commentedon Dec 11, 2025
Looks like a duplicate of dotnet/runtime#121596.
wd-mutasim commentedon Dec 11, 2025
Yes, it's the same issue
I found that workaround after dozens of attempts.
other one is publish using
win-x86