microsoft / microsoft/onnxruntime

[Build][Nuget] `Microsoft.AI.MachineLearning.dll` is not copied to the output folder.

Open
#22,939 3 comments 0 reactions 1 assignee Claimed by @smk2007 View on GitHub
.NET api:CSharp build
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

`Microsoft.AI.MachineLearning.dll` is not copied to the output folder when compiling native C++/WinRT projects.
Nuget package version `1.20.1`.

### Urgency

_No response_

### Target platform

Windows x64

### Build script

There is no custom one. Only Nuget's `.props/.targets` are involved.

### Error / output

The condition in `csharp/src/Microsoft.AI.MachineLearning/Microsoft.AI.MachineLearning.targets, line 35` seems to be broken since `1.16.0`:

``

Shouldn't the **WinAppSDKPackageName** be an MSBuild variable?
Also, the `Microsoft.AI.MachineLearning NuGet Settings` rule never pops up in the project settings UI, but this is probably unrelated.

### Visual Studio Version

17.9.6

### GCC / Compiler Version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.