0
这是我在ASP.NET 5(vNext)之前的旧代码更改。在ASP.NET 5(vNext)中使用System.ComponentModel.Description
public enum HashType : short {
[System.ComponentModel.Description("SHA1CryptoServiceProvider")]
SHA1 = 0,
[System.ComponentModel.Description("SHA256Managed")]
SHA256 = 1,
[System.ComponentModel.Description("SHA384Managed")]
SHA384 = 2,
[System.ComponentModel.Description("SHA512Managed")]
SHA512 = 3,
[System.ComponentModel.Description("MD5CryptoServiceProvider")]
MD5 = 4
}
现在,它给了我这个错误:
The type or namespace name 'Description' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference?) UtilityPackage..NET Platform 5.4
如果我在上面
移动鼠标这只是没有到此为止,代码的另一部分给出例外太。像这样的:
或这一个
而且我应该提到这个代码完全在我的旧classlibrary。