Skip to content

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

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions