I wrote a console application and I wanted to put some files into the library (portable). And I found it impossible to find class definitions that worked fine in the console application. Namely:

  • BinaryFormatter
  • Aes
  • AesCryptoServiceProvider
  • CryptoStream
  • Serializable

How to connect these classes ???

PS This library will be used in the UWP application.

If possible, provide alternatives for UWP.

Selected platforms: one

  • And what is wrong, for example, with using System.Runtime.Serialization.Formatters.Binary? - Aleksandr Zharinov
  • I do not know, writes what is missing. - Sanych Goilo

1 answer 1

Serialization, for example, is not on the XBox 360 platform - and therefore it does not fit into the most common PCL platform.

Try changing the platform in the project settings to less common.

  • Well, this is nonsense. In that sense, why is XBox so unique that they could not in one class? And they also argue about the universality of applications! The longer I go into it, the more I want back. - Sanych Goilo
  • @SanychGoilo for XBox is a separate version of the CLR. And for Silverlight. And for WP, too, its CLR. Yes, they themselves admitted that this is all nonsense, therefore they started the .NET Core project. But now we have what we have. - Pavel Mayorov
  • What am I supposed to do? I need these classes. Maybe some dll connect? You write, you write, and then you learn that it is all useless. - Sanych Goilo
  • @SanychGoilo say the same, try changing the platform. PCL has as many as 5 varieties. - Pavel Mayorov
  • @SanychGoilo as an option, you can abandon the idea of ​​a portable library in general, and collect it for different platforms separately. - Pavel Mayorov