Application using PowerShell System.Management.Automation compiled on Windows 8 not working on Windows 7 -
i built powershell script runner on windows 8 using vs2012 , framework 4.0 , when launch runner on windows 7 gives me error because powershell version older 1 on windows 8. (win7: ps2, win8 ps3). (system.management.automation)
are there solutions besides recompiling application on windows 7 or installing powershell 3 on windows 7? (or upgrading windows 7 machine :p) thanks!
you can reference powershell 2.0 version of assembly (v1) project on windows 8. compiling version make work on windows 7 (powershell 2.0) , windows 8 (powershell 3.0).
to powershell v2.0 version of assembly pull gac or install powershell 2.0 sdk , use that.
also make sure project targets .net 3.5 work on windows 7 without having install .net 4.5.
Comments
Post a Comment