DotNetOpenId openIdRelyingParty设置

时间:2010-05-29 23:10:41

标签: c# .net installation dotnetopenauth

我是.Net的新手,我正在尝试设置dotNetOpenID。我只是想让以下一行构建好而不会出现任何错误:

var openIdRelyingParty = new OpenIdRelyingParty();

目前,当我构建时,我收到以下错误:

  

找不到类型或namspace名称'OpenIdrelyingParty'(您是否缺少using指令或程序集引用?)

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:2)

确保您的项目引用了DotNetOpenAuth.dll,并将此行添加到代码文件的顶部:

using DotNetOpenAuth.OpenId.RelyingParty;

答案 1 :(得分:1)

确保已安装此软件包:https://nuget.org/packages/DotNetOpenAuth.OpenId.RelyingParty/4.1.0.12182

并添加:using DotNetOpenAuth.OpenId.RelyingParty;

enter image description here