I am trying to write a Powershell module as a VB.net project with Visual Studio 2015. I was able to compile several commands, compile the class library into a DLL, import the module into a Powershell session, and call the command I created. All is good so far. But since I am expanding this module, I will need to debug it. Therefore, I added another project to the solution - a console application. I installed it as a startup project and referenced the Powershell class in the first project. While I call the Powershell function, I wrote all the work done in the EndProcessing () routine. I cannot call it from my console application because it is protected.
Question: how to correctly call the get-testcommand function (which was created) from the command line using the console application so that the visual studio knows that I am referencing the code in a separate project and not the compiled DLL and calling breakpoints that I put in a Powershell class library?
source
share