pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
989 stars 662 forks source link

Help building PnP-PowerShell for debug #2814

Open breakpoint7 opened 4 years ago

breakpoint7 commented 4 years ago

Is there any detailed guidance on building the PnP-PowerShell code for debug purposes?

I found a few threads here that helped a bit (need Core as well), but I'm still stuck. Building in VS2019. I pulled down both the PnP-Sites-Core-master.zip and PnP-PowerShell-master.zip and aligned the dirs so that PowerShell can find the dependencies in Core. PnPCore.sln and OfficeDevPnP both seem to build fine. The info on PnPPowerShell says to be sure and built ModuleFilesGenerator first -- which seems to work.

When I try to build PnPPowerShell, I'm stuck on: 2>Base\PnPConnection.cs(3,31,3,51): error CS0234: The type or namespace name 'SecurityTokenService' does not exist in the namespace 'Microsoft.IdentityModel' (are you missing an assembly reference?)

I tried updated a few dependencies to address this with no luck. Not sure what I'm missing. Looking at the project, all the default dependencies look good.

Thanks!