Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[WinML] NU1102 errors observed with C# samples

Open
#487 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
build-system

Research direction

Reproduce the builds for ResnetBuildDemoCS.csproj and CSharpConsole.csproj, including the Package Sources UI and the WinAppSDK-SampleDeps feed mentioned in the report. Inspect how the Microsoft.Net.Sdk project element determines the requested runtime package versions. Done means both sample applications build without NU1102 errors and the required package versions resolve from the configured feed.

Written by the indexing model from the issue text.

Description

Steps

  1. Clone the repository and attempt to build the Windows ML C# sample applications (there might be a step needed in the Package Sources UI to enable the associated NuGet feed).

Expected
Applications build without issue

Actual
At least on one of the devices that I tested on, the applications generate NuGet errors with specific versions of dependencies that are pulled in presumably from the Microsoft.Net.Sdk project element. I didn't see this on an earlier machine. I don't yet know how the system is determining what version of the packages to acquire and whether there is a fix we need in the .csproj or if the solution is to upload more packages to the feed.

ResnetBuildDemoCS.csproj Errors
Unable to find package Microsoft.AspNetCore.App.Runtime.win-x86 with version (= 8.0.17)

  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.NETCore.App.Runtime.win-x86 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.NETCore.App.Runtime.win-arm64 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-arm64 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.AspNetCore.App.Runtime.win-arm64 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x86 with version (= 8.0.17)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]

CSharpConsole.csproj Errors
Unable to find package Microsoft.NETCore.App.Runtime.win-x86 with version (= 9.0.6)

  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.AspNetCore.App.Runtime.win-x86 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.NETCore.App.Runtime.win-arm64 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-arm64 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x64 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.AspNetCore.App.Runtime.win-arm64 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
    Unable to find package Microsoft.WindowsDesktop.App.Runtime.win-x86 with version (= 9.0.6)
  • Found 6 version(s) in WinAppSDK-SampleDeps [ Nearest version: 9.0.4 ]
Dominant language
PowerShell
Stars
1k
Forks
336
Avg merge
7h 13m
Merged PRs (30d)
3

Getting set up

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.

More from microsoft/WindowsAppSDK-Samples

All issues in microsoft/WindowsAppSDK-Samples

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.