简体   繁体   中英

Cannot resolve symbol x509store

I have this line of code:

X509Store certStore = new X509Store(StoreName.My, StoreLocation.CurrentUser);

It works fine in a console project, but not in my Windows Phone project. In the Windows Phone project, X509store cannot be found.

Why not?

For the .NET compact framework / Windows Phone apps, there is a solution here:

Is there any way to use X509Store in .NET CF? .

Bouncy Castle got you covered, check their site out. Download the source code, create new WP7 class library and add all files. It should compile. Do not copy tests folder since it depends on NUnit for testing, you won't be needing that.

What about the rest of your application, what do you want with certificates?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM