question

AkshayVerma-0607 avatar image
1 Vote"
AkshayVerma-0607 asked ·

Declared package dependency unavailable: Microsoft.VCLibs.140.00.UWPDesktop, Neutral, Universal,Universal

Hi,

I have a wpf app and I have converted it to uwp app using Windows application packaging project from Visual Studio. I am trying to submit appxupload package on store but at last when validation happens I am getting the error like :

Declared package dependency unavailable: Microsoft.VCLibs.140.00.UWPDesktop, Neutral, Universal,Universal

The app is having dependency of Visual C++ runtime package. So I have included this dependency in the package.appxmanifest file.

This MinVersion is being taken from here :
https://docs.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-prepare

Please check the Your app uses a VCLibs framework package in the above link.

This dependency should automatically get installed from the store when user installs the app. This is the retail version of the dependency. Why the package is not getting accepted on the store. I have also validated the package using Windows app certification kit and the overall result is passed.

I have also tried reducing the MinVersion of Microsoft.VCLibs.140.00.UWPDesktop package to "14.0.24217.0" as suggested here : https://support.microsoft.com/en-in/help/3176696/c-runtime-framework-packages-for-desktop-bridge. But then also after generating the package it is not getting accepted on store.

System Configuration:

OS: Windows 10 pro build 18362

System Type: X64

Please suggest the changes needs to be done.

Thanks
Akshay


[1]: /answers/storage/attachments/441-packageappxmanifest.txt

windows-uwpwindows-desktop-bridge
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What's the version of the Microsoft.VCLibs from C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0 in your device? Does it match the version you used in the manifest?

0 Votes 0 ·

Attaching the manifest file present at the location : C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.VCLibs.Desktop\14.0

ManifestFile



I copied the Name, MinVersion and Publisher of the retail one to the package.appxmanifest file.

Do I need to place the appx file present in the retail folder to my package ? Or by just mentioning the name, minversion and publisher in the manifest file is enough ?

0 Votes 0 ·

It's strange behavior. I'll take some time to discuss it with other engineers. There might be some time delay.

0 Votes 0 ·

1 Answer

Harshsharma-7159 avatar image
0 Votes"
Harshsharma-7159 answered ·

Hi Roy,


The issue is resolved now. Actually I was building the AnyCPU architecture i.e. Neutral one and VC++ runtime libraries can't be neutral. So the store was not accepting it. Now I have checked both x86 and x64 and then created the appxbundle. Now I am successfully able to upload appxbundle package.


Thanks for the help.


· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Glad to hear that! It's appreciated to share the answer here. I'll convert your comment to answer and could you please accept it as the answer? This could help others who are facing the same issue.

0 Votes 0 ·