PowerShell / PowerShell-Native

MIT License
50 stars 33 forks source link

We should remove dependency on this assembly by changing usage of Native APIs in PS7 to .NET APIs or P/Invokes #76

Open SteveL-MSFT opened 2 years ago

SteveL-MSFT commented 2 years ago

Perhaps also consider removing #ifdef UNIX so we can have a single MSIL based universal package (although still requires platform specific .NET runtime)

iSazonov commented 2 years ago

An option is to use .Net System.Native. See #67.

Perhaps also consider removing #ifdef UNIX

344 such conditions in pwsh :-) Of cause not all related to p/invokes but we need a lot of time to review and fix - we need start early if we want to do this.

Perhaps it makes sense to ask .Net team to review the PowerShell Native - is it possible to migrate pwsh to use new GeneratedDllImport attribute or they need a time to enhance the attribute/generator?

Thefrank commented 1 year ago

@SteveL-MSFT is there still a plan on removing this as dependency? If not, I have some FreeBSD related fixes I would like to make.