Hi @Zahur, Abdullah ,
Welcome to Microsoft Q&A!
I can reproduce the same behavior, but I didn't find out whether this API is still supported in WinUI3. I only found this document Windows Runtime APIs not supported in desktop apps.
It says that Windows.Devices.SmartCards
requires package identity, it doesn't say WinUI3 doesn't support Windows.Devices.SmartCards.SmartCard
.
If you need a solution now, It is recommended that you use win32 api to create virtual smartcard in WinUI3 project.
Virtual smart cards can also be created and deleted by using APIs. For more information, see the following classes and interfaces:
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.