Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在Visual Studio 2013中添加Windows.Security.Cryptography_C#_Visual Studio_.net Assembly_Add In_Nuget Package - Fatal编程技术网

C# 如何在Visual Studio 2013中添加Windows.Security.Cryptography

C# 如何在Visual Studio 2013中添加Windows.Security.Cryptography,c#,visual-studio,.net-assembly,add-in,nuget-package,C#,Visual Studio,.net Assembly,Add In,Nuget Package,我需要在oAuth 1a应用程序中使用Windows.Security.Cryptography和Windows.Storage.Streams,但找不到任何包或程序集 有人能告诉我如何使用这两门课吗 使用System.Security将不允许我导入以下类 Windows.Security.Cryptography是用于Windows应用程序开发的Windows SDK的一部分。对于您的ASP.Net应用程序,您可以添加对您正在创建的应用程序类型的引用?web api?我正在创建一个普通的ASP

我需要在oAuth 1a应用程序中使用
Windows.Security.Cryptography
Windows.Storage.Streams
,但找不到任何包或程序集

有人能告诉我如何使用这两门课吗

使用System.Security将不允许我导入以下类


Windows.Security.Cryptography
是用于Windows应用程序开发的Windows SDK的一部分。对于您的ASP.Net应用程序,您可以添加对您正在创建的应用程序类型的引用?web api?我正在创建一个普通的ASP.NET web应用程序,该应用程序将执行一些api请求
System.Security.Cryptography
命名空间位于mscorlib中。无法添加对“mscorlib”的引用。这个组件已经被生成系统自动引用。@SumanPalikhe-是的,应该是这样。我试图指出,您应该已经有了可用的
Windows.Security.Cryptography
。这不是一个完整的答案。你应该把这作为一个问题下的评论。是的,它看起来像一个Windows应用程序。我正在尝试构建一个使用OAuth1.0三条腿方法的web系统。因此,我需要用于加密的库。是否还有其他我可以用于Asp.net web应用程序的类?我想您不能直接在Asp.net应用程序中使用这些类。您可能需要重写类以使用System.Security,或者如果不想在这些类中编辑太多内容,则可以使用System.Security创建包装类(例如用于CryptographicBuffer)。不管怎样,我相信你将不得不做一些工作!