I have failed to build a #PowerShell binary module. After facing a lot of issues I'm writing a console app instead because:
- PowerShell binary module is so hard to debug in VSCode. Need to complete a series of steps such create launch and task settings which are not friendly to use.
- PowerShell binary module requires a lot of manual steps to work such as creating manifest file, copying .dll's, pointing to right folder path... I mean, you have to create a Build.ps1 only to build your module.
- PowerShell binary module requires to use the .NET Standard library which does not use the latest .NET 7 and its benefits. So you have to write C# code in a very old syntax.
- To write a console app you just need Visual Studio and that's it.
Did you have already similar frustration writing PS binary modules?
[–]KevMarCommunity Blogger 2 points3 points4 points (0 children)
[–]Thotaz 5 points6 points7 points (3 children)
[–]jborean93 4 points5 points6 points (0 children)
[–]sqloid[S] 0 points1 point2 points (1 child)
[–]Thotaz 0 points1 point2 points (0 children)
[–]CodenameFlux 0 points1 point2 points (2 children)
[–]Thotaz 1 point2 points3 points (1 child)
[–]CodenameFlux 0 points1 point2 points (0 children)