WindowsAppSDK
WindowsAppSDK copied to clipboard
error APPX0002: Task 'WinAppSdkGenerateAppxManifest' failed. Could not load file or assembly 'Microsoft.Cci, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Describe the bug
This has happened multiple times after changing the wasdk version in nuget package manager. Restart Visual Studio usually fixed it, but it's annoying.
Build log
1>------ Build started: Project: ListViewSelectedIndex-WinUI, Configuration: Debug x64 ------
1>ListViewSelectedIndex-WinUI.vcxproj -> D:\WinUI-Bug\19-ListViewSelectedIndex\x64\Debug\ListViewSelectedIndex-WinUI\ListViewSelectedIndex_WinUI.exe
1>D:\WinUI-Bug\19-ListViewSelectedIndex\packages\Microsoft.WindowsAppSDK.1.6.240531000-experimental1\build\Microsoft.Build.Msix.Packaging.targets(928,5): error APPX0002: Task 'WinAppSdkGenerateAppxManifest' failed. Could not load file or assembly 'Microsoft.Cci, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
1>D:\WinUI-Bug\19-ListViewSelectedIndex\packages\Microsoft.WindowsAppSDK.1.6.240531000-experimental1\build\Microsoft.Build.Msix.Packaging.targets(928,5): error APPX0002:
1>Done building project "ListViewSelectedIndex-WinUI.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 1:23 and took 02.039 seconds ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
========== Deploy completed at 1:23 and took 02.039 seconds ==========
It seems to happen right before deploying.
Steps to reproduce the bug
- Create a packaged winui3 app (C++)
- Build once.
- Upgrade the wasdk package to a newer version.
- Build again.
Expected behavior
No response
Screenshots
I am upgrading from the default 1.5.2 something to this version:
NuGet package version
None
Packaging type
Packaged (MSIX)
Windows version
No response
IDE
Visual Studio 2022
Additional context
No response