Active Directory 身份验证库 (ADAL) 不会安装 Visual Studio 2013 .NET v4

编程入门 行业动态 更新时间:2024-10-23 01:53:24
本文介绍了Active Directory 身份验证库 (ADAL) 不会安装 Visual Studio 2013 .NET v4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试遵循 Microsoft 的本教程,http://i65.tinypic/2lclf6a.jpg

我认为在安装较新版本的 Visual Basic 后,我不会遇到相同的错误.但并非如此.

我检查了我的注册表,并且安装了 .NET 框架版本 2-4.我假设,因为我没有看到 FULL 文件夹.ADAL 是否与版本 1-4 不兼容?我需要安装 v4.5 吗?还有什么事吗?

*更新:我刚刚尝试下载 .Net framework 4.5,但一个弹出窗口说已经安装了它或更新的版本.

*更新:我只是尝试安装最新版本的 ADAL

Install-Package Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory -Pre

但是我遇到了和以前一样的错误.

解决方案

在项目属性中将您的 目标框架 设置为 4.5*,看看是否不能解决问题.教程就是这样写的.

I am trying to follow along with this tutorial from Microsoft, https://dev.outlook/restapi/tutorial/dotnet, to use the Outlook REST API's with an app I'm building on Visual Studio 2013. I am using the .NET framework v4.

I am stuck on step 4. Implementing OAuth2. Specifically I am unable to install the Active Directory Authentication Library (ADAL) in NuGet Package Manager.

Originally, I tried to install the Active Directory Authentication Library (ADAL) on VS 2012, but soon discovered after consulting Stackoverflow that 2012 is not compatible with the REST API's. In the NuGet Package Manager Console I entered this line of code:

Install-Package Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory -Version 4.0.208020147-alpha -Pre

And got this error:

http://i66.tinypic/w1rb0y.jpg

So then I upgraded to VS 2013, installed the latest update (5), installed Microsoft Office 365 Development Tools, Microsoft ASP.NET and Web Tools, and updated NuGet. Again, in the NuGet Package Manager Console I entered this line of code:

Install-Package Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory -Version 4.0.208020147-alpha -Pre

But then I got this near identical error:

http://i65.tinypic/2lclf6a.jpg

I thought that after installing a newer version of Visual Basic, I wouldn't get the same error. But not so.

I checked in my registry, and I have .NET framework versions 2-4 installed. I assume, because I didn't see the FULL folder. Is the ADAL not compatible with versions 1-4? Do I need to install v4.5? Is there something else going on?

*Update: I just tried to download .Net framework 4.5 but a popup said it or a more recent version is already installed.

*Update: I just tried to install the more recent verion of the ADAL

Install-Package Microsoft.Experimental.IdentityModel.Clients.ActiveDirectory -Pre

but I got the same errors as before.

解决方案

Set your Target Framework to 4.5* in the project properties and see if that doesn't fix it. The tutorial was written that way.

这篇关于Active Directory 身份验证库 (ADAL) 不会安装 Visual Studio 2013 .NET v4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-27 13:09:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1154901.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   ADAL   Active   Directory   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!