我似乎無法弄清楚如何修復gsdll32
視覺工作室2015年的NuGet Ghostscript的安裝錯誤
此安裝錯誤,我運行64位Windows和視覺工作室2015年我能想到的唯一的事情就是nuget試圖在64位版本的視覺工作室上安裝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。這可能是這種情況,還是僅僅是一個新項目? – Carter
ghostscript從未安裝過。安裝失敗。 – Neoaptt
如果你想安裝Ghostscript,我建議你使用Windows安裝程序,它可以從ghostscript.com網站下載(在下載下)。一旦安裝,DLL將可用(以及其他一切)。請注意,Ghostscript是根據AGPL授權的,涵蓋了其用於軟件即服務的情況,以防您在商業上使用此軟件。我剛剛檢查了NuGet軟件包,但沒有包含違反AGPL的許可證。我會安排聯繫維護者並討論這個問題。 – KenS