I am updating a PowerShell script that manages some .NET assemblies. The script was written for assemblies built against .NET 2 (the same version of the framework that Power
Just run powershell.exe with COMPLUS_version environment variable set to v4.0.30319. For example, from cmd.exe or .bat-file:
COMPLUS_version
v4.0.30319
set COMPLUS_version=v4.0.30319 powershell -file c:\scripts\test.ps1