dotnet / dotnet/website-feedback

ML.NET DOES NOT SUPPORT .NET 10, Looks specifically for "Microsoft.CodeAnalysis.CSharp" Version="4.9.0.0"

Open
#1,495 6 comments 0 reactions 0 assignees View on GitHub
area-tutorials bug tutorial-ML
Dominant language
No language data
Stars
7
Forks
57
PR merge metrics
No merged PRs in 30d

Description

### URL

https://dotnet.microsoft.com/en-us/learn/ml-dotnet/get-started-tutorial/scenario

### Operating system

windows

### More information about your system

System Information report written at: 06/16/26 18:55:55
System Name: DESKTOP-KOBTCSE
[System Summary]

Item Value
OS Name Microsoft Windows 11 Pro
Version 10.0.26200 Build 26200
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-KOBTCSE
System Manufacturer HP
System Model Victus by HP Gaming Laptop 15-fa1xxx
System Type x64-based PC
System SKU 9X3L6PA#ACJ
Processor 12th Gen Intel(R) Core(TM) i5-12450H, 2000 Mhz, 8 Core(s), 12 Logical Processor(s)
BIOS Version/Date AMI F.18, 8/21/2024
SMBIOS Version 3.6
Embedded Controller Version 63.43
BIOS Mode UEFI
BaseBoard Manufacturer HP
BaseBoard Product 8C3F
BaseBoard Version 63.43
Platform Role Mobile
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.26100.1"
User Name DESKTOP-KOBTCSE\Admin
Time Zone India Standard Time
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.65 GB
Available Physical Memory 1.01 GB
Total Virtual Memory 11.6 GB
Available Virtual Memory 2.46 GB
Page File Space 4.00 GB
Page File C:\pagefile.sys
Kernel DMA Protection On
Virtualization-based security Running
Virtualization-based security Required Security Properties
Virtualization-based security Available Security Properties Base Virtualization Support, Secure Boot, DMA Protection, UEFI Code Readonly, SMM Security Mitigations 1.0, Mode Based Execution Control, APIC Virtualization
Virtualization-based security Services Configured
Virtualization-based security Services Running
App Control for Business policy Enforced
App Control for Business user mode policy Off
Automatic Device Encryption Support Elevation Required to View
A hypervisor has been detected. Features required for Hyper-V will not be displayed.

### Description

Image
The error occurs because ML.NET Model Builder does not support the .NET 10 preview runtime environment. When you click "Train" in the UI, Model Builder spawns an isolated, out-of-process CLI training engine (Microsoft.ML.ModelBuilder.AutoMLEngine.exe). Because your project targets net10.0, the extension attempts to host this engine using your system's .NET 10 Preview SDK. The version of Microsoft.ML.AutoML compiled into the current Visual Studio extension contains a hardcoded binding redirect looking specifically for Roslyn assembly Microsoft.CodeAnalysis.CSharp, Version=4.9.0.0. Because the .NET 10 shared runtime environment completely lacks this legacy version, the out-of-process background engine crashes instantly before the training framework even begins scanning your data file (yelp_labelled.txt).

--AI generated summary of the issue (concise)

### dotnet --info

PowerShell 7.6.2
PS C:\Users\Admin> dotnet --info
.NET SDK:
Version: 10.0.301
Commit: 96856fd726
Workload version: 10.0.300-manifests.8c7d7c03
MSBuild version: 18.6.4+96856fd72

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

.NET workloads installed:
[maui-windows]
Installation Source: VS 18.8.11904.113
Manifest Version: 10.0.20/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maui\10.0.20\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: VS 18.8.11904.113
Manifest Version: 26.5.10284/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maccatalyst\26.5.10284\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 18.8.11904.113
Manifest Version: 26.5.10284/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.ios\26.5.10284\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 18.8.11904.113
Manifest Version: 36.1.43/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.android\36.1.43\WorkloadManifest.json
Install Type: Msi

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.9
Architecture: x64
Commit: 901ca94124

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

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.9 [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:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.