TH-Soft wrote:
The PDFsharp builds that depend on Windows components like WPF or GDI will only compile against net6.0-windows7.0.
They need Windows, but higher versions are no problem.
This is no issue, this is by design.
When I attempt to install of the NuGet package for PDFsharp-WPF 6.0.0-preview-2, I get the following message:
Package restore failed. Rolling back package changes for 'BillOfLading'.
Unfortunately, it's not more specific as to why it failed besides the initial compatibility message that was shown before package installation.
Here is the output from attempting to install the package via PowerShell:
Code:
PM> Install-Package PDFsharp-WPF -Version 6.0.0-preview-2
Restoring packages for C:\Users\brianfutrell\source\repos\BillOfLading\BillOfLading\BillOfLading.csproj...
Install-Package : NU1202: Package PDFsharp-WPF 6.0.0-preview-2 is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Package PDFsharp-WPF 6.0.0-preview-2 supports: net6.0-windows7.0
(.NETCoreApp,Version=v6.0)
At line:1 char:1
+ Install-Package PDFsharp-WPF -Version 6.0.0-preview-2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Install-Package : Package restore failed. Rolling back package changes for 'BillOfLading'.
At line:1 char:1
+ Install-Package PDFsharp-WPF -Version 6.0.0-preview-2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Time Elapsed: 00:00:00.7761449