Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install Abp.Zero.Ldap #3217

Closed
sylfree9999 opened this issue Mar 22, 2018 · 3 comments
Closed

Could not install Abp.Zero.Ldap #3217

sylfree9999 opened this issue Mar 22, 2018 · 3 comments

Comments

@sylfree9999
Copy link

Github Issues

  • Abp package version: 3.4.0.
  • .NET framework: 4.6.1.
  • Exception message:
Install-Package : Unable to resolve dependency 'System.DirectoryServices.AccountManagement'. Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'.
At line:1 char:1
+ Install-Package Abp.Zero.Ldap
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand.
  • Steps needed to reproduce the problem:
    Install-Package Abp.Zero.Ldap
    

I have tried add reference System.DirectoryServices.AccountManagement, but still throws errors like above.

@alirizaadiyahsi
Copy link
Contributor

Hi @sylfree9999, there is an issue with latest version of this package. Could you try to install previous version? We well fix this issue in a short time.

@ismcagdas
Copy link
Member

@sylfree9999 https://www.nuget.org/packages/Abp.Zero.Ldap package depends on below packages and they are pre releases.

  • System.DirectoryServices.AccountManagement (>= 4.5.0-preview1-26216-02)
  • System.DirectoryServices.Protocols (>= 4.5.0-preview1-26216-02)

So if you include pre release pacakges while running Install-Package, it should work. See https://docs.microsoft.com/en-us/nuget/create-packages/prerelease-packages#installing-and-updating-pre-release-packages.

@sylfree9999
Copy link
Author

sylfree9999 commented Mar 22, 2018

@ismcagdas @alirizaadiyahsi
By using

Install-Package Abp.Zero.Ldap -IncludePrerelease

It finally gets installed!

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants