microsoft / microsoft/WindowsAppSDK-Samples
[WinML] NU1102 errors observed with C# samples
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1k
- Forks
- 335
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 8
Description
Steps
- 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 ]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100