-
Notifications
You must be signed in to change notification settings - Fork 426
Build failure when referencing WinUI and AI packages #5439
Copy link
Copy link
Closed
Labels
area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationarea-WCRWindows App SDK integration with Windows AI APIs for OCR, image & text analysis etc.Windows App SDK integration with Windows AI APIs for OCR, image & text analysis etc.
Description
Describe the bug
Referencing the WinUI and AI packages only, causes a build error;
Found multiple publish output files with the same relative path:
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Graphics.Imaging.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Graphics.Imaging.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.AI.ContentSafety.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.AI.ContentSafety.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.AI.Foundation.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.AI.Foundation.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.AI.Imaging.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.AI.Imaging.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.AI.Text.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.AI.Text.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.AI.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.AI.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.SemanticSearch.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.SemanticSearch.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.Vision.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.Vision.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\metadata\Microsoft.Windows.Workloads.winmd,
E:\.nuget\packages\microsoft.windowsappsdk.ai\1.8.135-experimental\runtimes-framework\win-arm64\native\Microsoft.Windows.Workloads.winmd.
Steps to reproduce the bug
- Create a blank WinUI Package app
- Rreplace the WinAppSDK metapackage with these two packages:
<PackageReference Include="Microsoft.WindowsAppSDK.WinUI" Version="1.8.250507002-experimental" />
<PackageReference Include="Microsoft.WindowsAppSDK.AI" Version="1.8.135-experimental" />- Compile and observe the build error
Expected behavior
No build error.
Screenshots
No response
NuGet package version
Windows App SDK 1.8 Experimental 2: 1.8.250515001-experimental2
Packaging type
Packaged (MSIX)
Windows version
Windows 11 version 24H2 (22621, October 2024 Update)
IDE
Visual Studio 2022
Additional context
If you also add the <PackageReference Include="Microsoft.WindowsAppSDK.Packages" Version="1.8.250515001-experimental2" /> package, the issue resolves itself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationarea-WCRWindows App SDK integration with Windows AI APIs for OCR, image & text analysis etc.Windows App SDK integration with Windows AI APIs for OCR, image & text analysis etc.