简体   繁体   English

通过C#进行Azure Active Directory身份验证的32位dll

[英]32 bit dll for Azure Active Directory Authentication through C#

My requirement is to connect to Windows Azure SQL Database through windows desktop application. 我的要求是通过Windows桌面应用程序连接到Windows Azure SQL数据库。 Connection should support both SQL Authentication and Active Directory Authentication. 连接应同时支持SQL身份验证和Active Directory身份验证。 For Active Directory Authentication two dlls are required 1. Microsoft.IdentityModel.Clients.ActiveDirectory.dll 2. Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll 对于Active Directory身份验证,需要两个dll 1. Microsoft.IdentityModel.Clients.ActiveDirectory.dll 2. Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll

I have installed nuget package to get these dlls with command as Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory 我已经安装了nuget包,并通过Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory命令获取了这些dll。

As my application is desktop app, we support both 32bit and 64 bit operating systems. 由于我的应用程序是桌面应用程序,因此我们支持32位和64位操作系统。 To support 32 bit OS, I need 32 bit version of these dlls. 为了支持32位操作系统,我需要这些dll的32位版本。

I tried googling and found a set of dlls here but pe deconstructor is showing the platform dll as 64 bit. 我尝试使用Google搜索,并在此处找到了一组dll 但pe解构函数将平台dll显示为64位。 在此处输入图片说明

Question :: Is there a cleaner and trustfull (such as nuget) way to get 32 bit version of these dlls 问题::是否有更干净,更可靠的方式(例如nuget)来获取这些dll的32位版本

There is no need to download the specific 32-bit version for this dll. 无需下载此dll的特定32位版本。 Actually the Microsoft.IdentityModel.Clients.ActiveDirectory.dll is built for any CPU. 实际上,Microsoft.IdentityModel.Clients.ActiveDirectory.dll是为任何CPU构建的。

We can check it using the CorFlags conversion tool. 我们可以使用CorFlags转换工具进行检查。 And it should like this: 它应该像这样:

在此处输入图片说明 Then we can refer here fore detail explanation for the result. 然后,我们可以在这里对结果进行详细说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM