Anybody tested PWPS and PWPS_DAB modules with Powershell Core 6?
Hi Kevin - I discovered that PowerShell Core 6.x.x is not fully compliant with full blown .NET and for me it did not work with pwps_dab
Things like .NET Windows forms didnt load.. I tried to force load then import-module again... Once past that.... This is the sort of thing I am getting.
Is there any update on Powershell 6 Core or indeed Powershell 7 and the pwps_dab module? I am trying to implement some PS scripts from within a .net core app but currently can't even get the pwps_dab module to import to PS 7 on my local machine due to this error:
"Import-Module: Could not load file or assembly 'BTSTypes, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified."
I've found other references to "BTSTypes" on the forums, where the issue was due to PWDM - which I've never had and never used before. Obviously this error isn't appearing in Windows Powershell (5.1) so I was just wondering if the pwps_dab module should work in PS 7 or not (yet)?
PowerSHell 7 added a -UseWindowsPowershell option to Import-Module that may allow it to import (I haven't tested myself yet).
Thanks for the response Kevin. I was quite hopeful for that switch until near the end of that page where it says it'll only work locally on a Windows machine. We're deploying the .net core app on an Azure server, so assume it won't work (anybody please correct me if I'm wrong)
Any other ideas on connecting to ProjectWise via Powershell from a .net core app would be much appreciated. Right now, this is a blocker to maintaining our direct interface to PW from our internal deliverables tool, which is a key part of its functionality.
No joy unfortunately, although pwps_dab manages to login ok, the deserialized objects break simple functionality (e.g. checkout):
WARNING: Module pwps_dab is loaded in Windows PowerShell using WinPSCompatSession
remoting session; please note that all input and output of commands from this module
will be deserialized objects. If you want to load this module into PowerShell Core
please use 'Import-Module -SkipEditionCheck' syntax.
New Text Document (2).txt
CheckOut-PWDocuments: Cannot bind parameter 'InputDocument'. Cannot convert value
"PWPS_DAB.CommonTypes+ProjectWiseDocument" to type
Error: "Cannot convert the "PWPS_DAB.CommonTypes+ProjectWise_DAB.CommonTypes+ProjectWiseDocument"
value of type "Deserialized.PWPS_DAB.CommonTypes+ProjectWiseDocument"
to type "PWPS_DAB.CommonTypes+ProjectWiseDocument"."
+1 for PowerShell 7 support.
Kind regards, James