Answer the question
In order to leave comments, you need to log in
VkNet sdk is not installed via nuget, swears at any Framework, what should I do?
For my project on VS 2015 Community Edition, I want to connect the VkNet library, the author assumes installation via nuget. When I write the install command, it says the following:
PM> Install-Package VkNet
Attempting to gather dependency information for package 'VkNet.1.29.2' with respect to project 'WindowsForms VkNet training1', targeting '.NETFramework,Version=v4.5'
Attempting to resolve dependencies for package 'VkNet. 1.29.2' with DependencyBehavior 'Lowest'
Resolving actions to install package 'VkNet.1.29.2'
Resolved actions to install package 'VkNet.1.29.2'
Install failed. Rolling back...
Package 'VkNet.1.29.2' does not exist in project 'WindowsForms VkNet training1'
Package 'VkNet.1.29.2' does not exist in folder 'c:\Users\Andrey\Documents\Visual Studio 2015\ Projects\WindowsForms VkNet practice1\packages'
Install-Package : Could not install package 'VkNet 1.29.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly reference
s or content files that are compatible with that framework. For more information, contact the package author.
At line:1 char:16
+ Install-Package <<<< VkNet
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Answer the question
In order to leave comments, you need to log in
In the description for this version of the library is .NETStandard 1.2
For the 2015 studio to create projects for this framework, you need to install sdk
The best solution for you is to take not the latest version of this library, let's say this https://www.nuget.org/packages/VkNet /1.29.1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question