microsoft / microsoft/WindowsML
Known issue: Microsoft.Windows.AI.MachineLearning nuget fails with .NET PublishSingleFile
Open
@zadesai is already working on this.
Since Jul 2, 2026.
- Dominant language
- No language data
- Stars
- 29
- Forks
- 5
- Avg merge
- 11h 1m
- Merged PRs (30d)
- 2
Description
Publishing a .NET app that uses Microsoft.Windows.AI.MachineLearning nuget with PublishSingleFile=true fails WinRT activation at runtime with Class not registered (0x80040154 REGDB_E_CLASSNOTREG), because the native DLLs are not embedded in the single .exe.
Fix: add IncludeAllContentForSelfExtract so the native DLLs are extracted at runtime:
<PublishSingleFile>true</PublishSingleFile>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.