What's the story about the included PnP Library? #6
Replies: 2 comments 2 replies
-
Hi @lonesome-cloner, The reason I wanted to include the module with the tool is to
I see many people who I work with having issues even with the simple act of installing a PowerShell module. Even very technical colleagues struggle sometimes. To avoid dealing with these issues, I've just included all dependencies inside the whole package. Why I included the older PnP rather than the new oneI wanted this tool to be portable ("sendable" over an email). For this reason, I actually wanted to included an even older version of PnP, from around 2018 (might still do it later). The older version used to be very lightweight, 30 MB, then it grew to 55 MB (currently used by this project). Then the modern PnP.PowerShell is around 80MB. Maybe I can simply delete some of the DLL's that I know for a fact are not used by the module? I need to give it a try. The fact that this tool imports a PowerShell module does not interfere in any way with other modules you might already have installed locally. |
Beta Was this translation helpful? Give feedback.
-
Hi @mchestnutthreewill Thank you very much for testing it. I am planning to upgrade to the latest PnP.PowerShell module. I tried it a times over the last year, it just never worked for me. I didn't try the PnP.PowerShell v1.9 yet, but there is a good chance it has the same issue as the previous version since the change log does not mention a fix. I don't have a specific list of steps for reproduction, but from what I remember, I could never export SharePoint lists and Import them using PnP.PowerShell. Below is a quick example from memory. The Export/Import process just never worked for me. I saw several issues reported but saw no solution for this. Unfortunately, I was also too lazy to report it myself, which I regret now. Test of PnP.PowerShell
|
Beta Was this translation helpful? Give feedback.
-
Hi:
I was a bit surprised to see that you had included a copy of the PnP PowerShell library with the application, complete with DLLs.
What led you to use this copy instead of relying on the latest release of PnP PowerShell?
Best Regards,
lonesome-cloner
Beta Was this translation helpful? Give feedback.
All reactions