I want to implant an Android game app to Win store app. It is ok when running game on unity. But there are errors when I build and run its solution:
CS0234: The type or namespace name ‘System.Security’ does not exist in the namespace ‘Cryptography’ (are you missing an assembly reference?)
CS0246: The type or namespace name ‘BindingFlags’ could not be found (are you missing a using directive or an assembly reference?)
Here are the codes where CS0243 happen:
using UnityEngine;
using System.Collections;
using System.Security.Cryptography; //CS0243
using System.Text;
CS0246 is(this is class Ani.Mate for animation):
static BindingFlags bFlags = BindingFlags.Public | BindingFlags.NonPublic |
BindingFlags.Instance | BindingFlags.Static;
I don’t know why it happens? They are built-in classes. Did I miss any reference? If
My MonoDevelop version is 2.8.2. Unity version is 4.2.2.
Thanks for your reply. Because I use the basic MD5 control, I found a built-in method Windows.Crypto.ComputeMD5Hash in Unity for Windows store app to replace the basic functionality of System.Security.Cryptography.MD5CryptoServiceProvider.
– RudinUnity