Unable to add pdf viewer to project

Hello,

I am trying to add the SfPdfViewer nugget package to my project but am unable to do so. In the package console, it is checking compatability for a lot of different packages and then outputs this at the end.


All packages and projects are compatible with .NETStandard,Version=v2.1.

Package restore failed. Rolling back package changes for 'MyProject'.


Any help getting this work would be greatly appreciated.

Thanks,

David


1 Reply

VD Vikram Devaraj Syncfusion Team September 23, 2021 10:20 AM UTC

Hi David,

Based on your query, we suspect the following below are the solution for your issue.

1.Clear NuGet
Cache based on the steps provided in the below stack overflow link.
https://stackoverflow.com/questions/45906856/package-restore-failed-rolling-back-package-changes/46144314 
2.Clear the NuGet cache and then install NuGet based on the below link.
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
3.Check whether your NuGet package source is enabled or linked with the nuget.org package.

Could you please try the below sample which we have tried in our end and we were unable to replicate any issues in the sample.
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/sample-1270375431.zip

If the above provided solution is not fixed your issue,  P
lease share following  details to analyze more on this issue.
1. Visual-studio version.
 
2. Xamarin.Forms package version 
3.Confrim us, what are the syncfusion NuGets you are using in your sample other then SfPdfViewer 
4. SfPdfViewer  version. 
5. Simple sample/ modify the above sample to reproduce the issue

Regards,
Vikram
 


Loader.
Up arrow icon