Skip to content

Unable to install via NuGet in a .NET Core 4.5/4.5.1 environment #874

Closed
@CruzBishop

Description

@CruzBishop

Hi,

I'm working on a terminal application for Windows 8.1 (and 10 once released), and one of the features I was looking to implement before a release was LibGit2Sharp integration if git isn't installed on the host computer.

When trying to install via Visual Studio 2012 / NuGet, I get the following

PM> Install-Package LibGit2Sharp
Installing 'LibGit2Sharp 0.20.0.0'.
Successfully installed 'LibGit2Sharp 0.20.0.0'.
Adding 'LibGit2Sharp 0.20.0.0' to Windows Advanced Shell.
Uninstalling 'LibGit2Sharp 0.20.0.0'.
Successfully uninstalled 'LibGit2Sharp 0.20.0.0'.
Install failed. Rolling back...
Install-Package : Could not install package 'LibGit2Sharp 0.20.0.0'. You are trying to install this package into a project that targets '.NETCore,Version=v4.5.1', but the package 
does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package LibGit2Sharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Is there a way to bypass this, or does LibGit2Sharp not yet support .NET 4.5 and 4.5.1?

Thanks in advance :)

~Cruz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions