Skip to content

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

Description

@zadesai

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>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions