Open SteveL-MSFT opened 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?
@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.
Perhaps also consider removing
#ifdef UNIX
so we can have a single MSIL based universal package (although still requires platform specific .NET runtime)