launch powershell under .NET 4
Posted
by Emperor XLII
on Stack Overflow
See other posts from Stack Overflow
or by Emperor XLII
Published on 2010-01-19T15:44:06Z
Indexed on
2010/03/08
20:51 UTC
Read the original article
Hit count: 853
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 PowerShell runs with), but now needs to work with .NET 4 assemblies as well as .NET 2 assemblies.
Since .NET 4 supports running applications built against older versions of the framework, it seems like the simplest solution is to launch PowerShell with the .NET 4 runtime when I need to run it against .NET 4 assemblies.
How can I run PowerShell with the .NET 4 runtime?
© Stack Overflow or respective owner