我无法在项目中安装任何软件包。我需要安装ITextSharp
软件包。
但是我遇到了一些错误:
Install-Package : NU1202: Package iTextSharp-LGPL-BouncyCastle 4.1.6 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0). Package iTextSharp-LGPL-BouncyCastle 4.1.6 supports: - net (.NETFramework,Version=v0.0) - net20 (.NETFramework,Version=v2.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp 5.5.13 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0). Package iTextSharp 5.5.13 supports: net (.NETFramework,Version=v0.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package BouncyCastle 1.7.0 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0). Package BouncyCastle 1.7.0 supports: - net20 (.NETFramework,Version=v2.0) - net40-client (.NETFramework,Version=v4.0,Profile=Client) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp-LGPL-BouncyCastle 4.1.6 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win. Package iTextSharp-LGPL-BouncyCastle 4.1.6 supports: - net (.NETFramework,Version=v0.0) - net20 (.NETFramework,Version=v2.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package BouncyCastle 1.7.0 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win. Package BouncyCastle 1.7.0 supports: - net20 (.NETFramework,Version=v2.0) - net40-client (.NETFramework,Version=v4.0,Profile=Client) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp 5.5.13 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win. Package iTextSharp 5.5.13 supports: net (.NETFramework,Version=v0.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp-LGPL-BouncyCastle 4.1.6 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win-x64. Package iTextSharp-LGPL-BouncyCastle 4.1.6 supports: - net (.NETFramework,Version=v0.0) - net20 (.NETFramework,Version=v2.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package BouncyCastle 1.7.0 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win-x64. Package BouncyCastle 1.7.0 supports: - net20 (.NETFramework,Version=v2.0) - net40-client (.NETFramework,Version=v4.0,Profile=Client) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp 5.5.13 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win-x64. Package iTextSharp 5.5.13 supports: net (.NETFramework,Version=v0.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp-LGPL-BouncyCastle 4.1.6 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win-x86. Package iTextSharp-LGPL-BouncyCastle 4.1.6 supports: - net (.NETFramework,Version=v0.0) - net20 (.NETFramework,Version=v2.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package BouncyCastle 1.7.0 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win-x86. Package BouncyCastle 1.7.0 supports: - net20 (.NETFramework,Version=v2.0) - net40-client (.NETFramework,Version=v4.0,Profile=Client) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : NU1202: Package iTextSharp 5.5.13 is not compatible with xamarinios10 (Xamarin.iOS,Version=v1.0) / win-x86. Package iTextSharp 5.5.13 supports: net (.NETFramework,Version=v0.0) At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Package restore failed. Rolling back package changes for 'HomeApplication_V4.iOS'. At line:1 char:1 + Install-Package iTextSharp-LGPL-BouncyCastle -Version 4.1.6 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand Any suggestion about my project.
Please give me suggestion. what I need to do about xamarinios10 (Xamarin.iOS,Version=v1.0) / win. I have tried with Itextsharp V4.17 also but error remain same.
关于如何解决此问题的任何想法?
答案 0 :(得分:1)
我做了很多研究,发现了一些对您有用的链接:
iTextSharp: Any support for dotnet core (netstandard1.6)?
所以iTextSharp不支持.NET Standard 的问题。如果仍要在项目中使用iTextSharp,则需要使用Xamarin Port。您可以下载iTextSharp的源代码,然后将其复制粘贴到Visual Studio中的新Xamarin类库项目中。
我发现以前有人这样做过,例如:Xam.iTextSharpLGPL。但是问题在于,这是基于iText的古老版本(2009年7月7日发行),它将永远不会获得更新或错误修复。
iText软件已经发布了iText 7的Xamarin端口,该端口将继续获得更新。 我认为您应该改用iText7。经过我的测试,我可以毫无问题地安装iText7。
希望这会对您有所帮助。
谢谢