簡體   English   中英

在Visual Studio 2010中安裝iText 7.1失敗

[英]Installing iText 7.1 fails in Visual Studio 2010

我正在使用Visual Studio 2010 Premium(不能為我的項目使用更高版本)。

我從工具->擴展管理器-> Online Gallery安裝了Visual Studio的NuGet軟件包管理器。

我安裝了作為iText7依賴項的'Common.Logging'和'Common.Logging.Core'軟件包。

我嘗試在前兩個軟件包之后安裝iText7,但由於出現“ Portable.BouncyCastle”軟件包也是iText7的依賴項,因此出現錯誤。

我嘗試安裝“ Portable.BouncyCastle”軟件包,但出現錯誤:

安裝軟件包:'Portable.BouncyCastle 1.8.1.3'軟件包需要NuGet客戶端版本為'2.12'或更高版本,但當前的NuGet版本為'2.8.60318.667'。

PM> Install-Package itext7
Attempting to resolve dependency 'Common.Logging (≥ 3.4.1)'.
Attempting to resolve dependency 'Common.Logging.Core (≥ 3.4.1)'.
Attempting to resolve dependency 'Portable.BouncyCastle (≥ 1.8.1.3)'.
Install-Package : 'Portable.BouncyCastle' already has a dependency defined for 'NETStandard.Library'.
At line:1 char:1
+ Install-Package itext7
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

PM> Install-Package Common.Logging
Attempting to resolve dependency 'Common.Logging.Core (≥ 3.4.1)'.
Installing 'Common.Logging.Core 3.4.1'.
Successfully installed 'Common.Logging.Core 3.4.1'.
Installing 'Common.Logging 3.4.1'.
Successfully installed 'Common.Logging 3.4.1'.
Adding 'Common.Logging.Core 3.4.1' to AF.Custom.Events.
Successfully added 'Common.Logging.Core 3.4.1' to AF.Custom.Events.
Adding 'Common.Logging 3.4.1' to AF.Custom.Events.
Successfully added 'Common.Logging 3.4.1' to AF.Custom.Events.

PM> Install-Package Common.Logging.Core
'Common.Logging.Core 3.4.1' already installed.
AF.Custom.Events already has a reference to 'Common.Logging.Core 3.4.1'.

PM> Install-Package itext7
Attempting to resolve dependency 'Common.Logging (≥ 3.4.1)'.
Attempting to resolve dependency 'Common.Logging.Core (≥ 3.4.1)'.
Attempting to resolve dependency 'Portable.BouncyCastle (≥ 1.8.1.3)'.
Install-Package : 'Portable.BouncyCastle' already has a dependency defined for 'NETStandard.Library'.
At line:1 char:1
+ Install-Package itext7
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

PM> Install-Package Portable.BouncyCastle
Install-Package : The 'Portable.BouncyCastle 1.8.1.3' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'.
At line:1 char:1
+ Install-Package Portable.BouncyCastle
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], NuGetVersionNotSatisfiedException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

PM> 

我在Visual Studio中從工具->擴展管理器->更新中檢查了NuGet客戶端的更新。 ,但找不到任何更新。

任何想法?

請嘗試在Nuget Package Manager控制台中使用以下代碼;

Install-Package itext7 -Version 7.0.3

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM