markekraus / PSMSGraph

A PowerShell module for the Microsoft Graph API
MIT License
81 stars 21 forks source link

Support for Powershell 6 (.net Core) missing #35

Open chwilfing opened 5 years ago

chwilfing commented 5 years ago

Importing the module into a powershell 6.1 session throws an error due to dependency on System.Windows.Forms. Are there any plans or work underway to support pwsh.exe as a host?

thanks for your great work!

BG Christoph

Import-Module : Could not load file or assembly 'System.Windows.Forms, Culture=neutral, PublicKeyToken=null'. Das System kann die angegebene Datei nicht finden.
At line:1 char:1
+ Import-Module psmsgraph
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
markekraus commented 5 years ago

@chwilfing there are several hurdles to implementing this on .NET Core. At the core of it is the authentication methods. The device Auth flows (similar to that used by the Az modules) is not documented. Also, the module currently has a heavy reliance on DPAPI for storing tokens securely, that is not supported x-plat. Finally, i don't have an abundance of free time to work on this and graph is no linger an API I work with on a regular basis so i don't have business justification to work on it.