Author |
Topic: Can't import package 'GFAPI' via NuGet (5 messages, Page 1 of 1) |
||||
---|---|---|---|---|---|
Moderators: VPfau | |||||
XCHEN9417 Posts: 2 Joined: Apr 06, 2020 |
When I obtained the latest version of GF API via NuGet in Vistual Stidio, one error occurred:
Installed failed:The package "GFAPI" attempts to add a framework reference that does not exist in GAC to the "gf.api".This could be a package Bug.Please contact the package owner for help.Error not specified (exception from HRESULT:0x80004005 (E_FAIL)) Anybody know why? |
||||
CKane3211 Posts: 6 Joined: May 26, 2017 |
I don't remember if I had the same problem, but I wasn't able to use NuGet to add the library to my project in Visual Studio either. I had to manually download the .nuget file, change the file extension to .zip (.nuget files are just .zip files with a different extension), extract the contents of the file, and manually add the GF API DLLs to the "packages" folder of my project.
|
||||
CKane3211 Posts: 6 Joined: May 26, 2017 |
Oh, and one other thing. After you have added the DLLs to your "packages" folder, you can then go into your project in Visual Studio and add a new reference to them using the "Browse" feature.
|
||||
JSmith5611 Posts: 187 Joined: |
To help with this,
What version of Visual Studio are you using? what versions of the .net framework are installed? Jason Smith
|
||||
JSmith5611 Posts: 187 Joined: |
I was just able to replicate this using a fresh project under Visual Studio 2015.
If the project i was applying it to was set to use .NET Framework 4.6, it would fail to install with this error. If the project was set to .NET Framework 4.6.2, it would work fine. I think we may be incorrectly setting the minimum framework required in the .nuspec file. Jason Smith
|
||||