Failed to import Namespace System.Security.Criptograhy.Pkcs

Hello ,

This is a two parts question

Recently I created a library that I had to import the an specific Namespace as per the screenshot below. And it works as expected when I test.

My issue starts when I try to import the library for other projects and used it.

I am receiving the error below. As the first log is generated inside the library, I know exactly where the code is breaking and it seems is missing importing the names space System.Security.Criptograhy.Pkcs (which is required to run)

  1. As per my understanding, when importing the library all the used namespaces should come with it and no manual namespace importing should be required. Is my statement correct?

  2. I had a similar issue in the past but I solved importing the required namespace manually on the process using the lib. However, in that particular case, my process cannot import this namespace (it does not show anything).

image

I also try to create an assembly direct on XAML file but also failed to import. Any idea why I cannot import this specific namespace (System.Security.Criptograhy.Pkcs )?

Thank you very much!!

Hey!

When we published the package to our local all the dependencies will stay with the lib.

But the namespaces don’t… we have to add particular namespace manually in the project where we’re trying to use that reusable component.

Regards,
NaNi

Thank you for the reply @THIRU_NANI

if you are correct, in order to make it work, I have to import the namespace manually.

Any theory why I cannot import the System.Security.Criptograhy.Pkcs, which is the one needed to successfully make the code run?

Best regards,

I forgot adding the assembly manually and then adding namespace.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.