I would like to debug a command locally to understand an issue better but am having a hard time getting the project to build successfully.
dotnetcore
.NET Framework 4.5
I assume to debug the commands, I need the build to drop a package in path which PowerShell modules can be loaded. It seems this is what the postbuild.ps1 script does. I havent been able to get anything to show up in _C:\Users\
Any nudge in the right direction would be much appreciated.
The following procedure for setting up my dev environment did work for me:
Did not have to configure anything else. Windows 10, Visual Studio 2017 & 2019 Preview.
(Once after a PnP update I hade to uninstall all old PnP PowerShell modules, Office 365 CLI and SP Client Components SDK installations because there was an assembly mix-up. Apart from that everything went smoothly and on the first try.)
When I build the assemblies are copied to _C:\Users\
Did this on two different machines, worked both times.
Now the question: what's different on your machine?
Confirmed this worked for me after switching all projects to debug16, thru Configuration Manager, as well.
Thank you both for the assistance. Following your steps, everything did build successfully but I still find an empty C:\Users
don't think it's only on your machine. Have the same. As far as I understand the compiled cmdlets are copied by post build events. But in my solution (pulled yesterday) no project has any postbuild events. Did they get lost somehow?