J'ai essayé de charger PresentationFramework.dll de .NET 4.0 beta2 dans v2.0 PowerShell. Mais il échoue avec l'erreur suivante.un ensemble de beta2 .NET 4.0 dans PowerShell 2.0
PS C: \ Windows \ system32> [Reflection.Assembly] :: LoadFile ("C: \ Windows \ Microsoft.NET \ Framework \ v4.0.21006 \ WPF \ PresentationF ramework.dll")
Exception appelant "LoadFile" avec "1" argument (s): "Cet assembly est construit par un runtime plus récent que le runtime actuellement chargé et ne peut pas être chargé (Exception de HRESULT: 0x8013101B)" at line: 1 char: 32 + [Reflection.Assembly] :: LoadFile < < < < ("C: \ Windows \ Microsoft.NET \ Framework \ v4.0.21006 \ WPF \ PresentationFramework.dll") + Catégorie Info: NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId: DotNetMethodException
Comment puis-je charger ce fichier DLL au sein PowerShell 2.0?
Pourquoi ne pouvez-vous pas charger l'assembly 3.0 à la place? –
double possible de [Powershell de lancement sous .NET 4] (http://stackoverflow.com/questions/2094694/launch-powershell-under-net-4) –
question similaire est abordée dans [Powershell de lancement sous .NET 4] (http://stackoverflow.com/questions/2094694/launch-powershell-under-net-4) –