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

Problem installing this #50

Closed
jatinpandya opened this issue Oct 4, 2020 · 2 comments
Closed

Problem installing this #50

jatinpandya opened this issue Oct 4, 2020 · 2 comments

Comments

@jatinpandya
Copy link

I get this error when I try to install this package in VS 2017 nuget. Any suggestions?

Attempting to gather dependency information for package 'Svg.Skia.0.4.1' with respect to project 'SVG-Draw', targeting '.NETFramework,Version=v4.0'
Gathering dependency information took 16.02 ms
Attempting to resolve dependencies for package 'Svg.Skia.0.4.1' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Svg.Skia.0.4.1'
Resolved actions to install package 'Svg.Skia.0.4.1'
Retrieving package 'Svg.Skia 0.4.1' from 'nuget.org'.
Install failed. Rolling back...
Package 'Svg.Skia.0.4.1' does not exist in project 'SVG-Draw'
Package 'Svg.Skia.0.4.1' does not exist in folder 'C:\Work\SVG-Stuff\packages'
Executing nuget actions took 191.58 ms
install-package : Could not install package 'Svg.Skia 0.4.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', 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 Svg.Skia
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
@FoggyFinder
Copy link

The error message is pretty clear: You can't install the package into project that targets .Net 4.0 framework.

Consider upgrating your project to a newest version. For example, .net framework 4.6.1. If this is not an option you will have to build library from source targeting .net 4.0. And that might be not easy.

@wieslawsoltes
Copy link
Owner

Minimum supported targets:

netstandard2.0
netcoreapp2.2
net461

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