【发布时间】:2017-09-13 21:14:11
【问题描述】:
我似乎不知道如何解决 gsdll32 的安装错误
我正在运行 64 位 Windows 和 Visual Studio 2015。我唯一能想到的是 nuget 正在尝试在 64 位版本的 Visual Studio 上安装 32 位 dll。但我似乎无法与其他任何人确认这个错误。我需要 Ghostscript 在网站上将 PDF 转换为 JPG。如果您有 Ghostscript 的替代品,请告诉我。视觉工作室安装 Ghostscript.NET 就好了。但它在 ghostscript 本身上失败了。
PM> Install-Package Ghostscript -Version 9.2.0
Attempting to gather dependency information for package 'Ghostscript.9.2.0' with respect to project 'wilcox_fresh', targeting '.NETFramework,Version=v4.6.1'
Gathering dependency information took 845.32 ms
Attempting to resolve dependencies for package 'Ghostscript.9.2.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'Ghostscript.9.2.0'
Resolved actions to install package 'Ghostscript.9.2.0'
Retrieving package 'Ghostscript 9.2.0' from 'nuget.org'.
Adding package 'Ghostscript.9.2.0' to folder 'C:\Users\Neoaptt\Source\Repos\wilcoxfreshsite\packages'
Added package 'Ghostscript.9.2.0' to folder 'C:\Users\Neoaptt\Source\Repos\wilcoxfreshsite\packages'
Install failed. Rolling back...
Package 'Ghostscript.9.2.0' does not exist in project 'wilcox_fresh'
Removing package 'Ghostscript.9.2.0' from folder 'C:\Users\Neoaptt\Source\Repos\wilcoxfreshsite\packages'
Removed package 'Ghostscript.9.2.0' from folder 'C:\Users\Neoaptt\Source\Repos\wilcoxfreshsite\packages'
Executing nuget actions took 460.6 ms
Install-Package : Failed to add reference to 'gsdll32'.
At line:1 char:1
+ Install-Package Ghostscript -Version 9.2.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:00:01.4721036
【问题讨论】:
-
有时在新计算机上重新打开存储库时,我的 nuget 引用搞砸了,我必须执行 update-package Ghostscript -reinstall 。可能是这种情况,还是只是一个新项目?
-
一开始就没有安装 Ghostscript。安装失败。
-
如果您想安装 Ghostscript,我建议您使用 Windows 安装程序,该安装程序可从 ghostscript.com 站点(下载中)获得。安装后,DLL 将可用(以及其他所有内容)。请注意,Ghostscript 是根据 AGPL 获得许可的,该 AGPL 涵盖了其用于软件即服务的用途,以防您将其用于商业用途。我刚刚检查了 NuGet 包,它不包含明显违反 AGPL 的许可证。我会安排联系维护人员并讨论这个问题。
标签: c# visual-studio-2015 nuget ghostscript