-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi!
When you write Powershell .NET 2 is required.. you mean Powershell Core 6.2?
I've tried loading the dll with
add-type "C:\Temp\PSCore-master\PSCore\bin\Debug\PSCore.dll"
in Powerhsell 5.1 (Win10)
Name Value
---- -----
PSVersion 5.1.16299.820
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16299.820
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
but all I get is: (sorry for the non-english error messages)
add-type : c:\Users\alex\AppData\Local\Temp\dib2sd5w.0.cs(1) : Uno spazio dei nomi non può contenere direttamente membri come campi o metodi
c:\Users\alex\AppData\Local\Temp\dib2sd5w.0.cs(1) : >>> PSCore.dll
In riga:1 car:1
+ add-type "PSCore.dll"
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Power...peCompilerError:AddTypeCompilerError) [Add-Type], Exception
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.AddTypeCommand
add-type : Impossibile aggiungere il tipo. Si sono verificati errori di compilazione.
In riga:1 car:1
+ add-type "PSCore.dll"
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Add-Type], InvalidOperationException
+ FullyQualifiedErrorId : COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand
Metadata
Metadata
Assignees
Labels
No labels