question

HenkJongsma-6913 avatar image
1 Vote"
HenkJongsma-6913 asked HenkJongsma-6913 commented

Same key in Windows.Services.Store.StorePackageInstallOptions

I have an application X in the Microsoft store for testing.
To get some experience with the Windows.Services.Store I tried the Microsoft Store sample and I associated the App with the store application X. The Store sample worked fine.
Next I extended my app with a purchase function and associated this app also with the store application X. In debug mode it worked correct, but the release mode gave the error:

Internal compiler error: An item with the same key has already been added.
Key: Windows.Services.Store.StorePackageInstallOptions

Is the reason for the error that I have associated two apps with the same store application? Anyway, how to correct this error?

partner-center-general
· 2
5 |1600 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.

Have you tried with a blank UWP project? Using the same purchase function and associate it with the store application X.

0 Votes 0 ·

@RoyLi-MSFT: Thanks for your comment.
I tried that and several other things. What finally helped was removing Windows.Services.Store from my project assembly and putting all the purchase code in myproject.UWP.

0 Votes 0 ·

0 Answers