microsoft / microsoft/WindowsML

Known issue: Microsoft.Windows.AI.MachineLearning nuget fails with .NET PublishSingleFile

Open
#13 0 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.