How To Load .NET Assemblies In A PowerShell Session

来源:互联网 发布:汽车导航软件免费下载 编辑:程序博客网 时间:2024/05/22 07:03

PowerShell (the engine) runs fine under .NET 4.0. PowerShell ( the console host and the ISE) do not, simply because they were compiled against older versions of .NET.

To update just the ISE to use .NET 4.0, you can change the config ($psHome\powershell_ise.exe.config) file to have a chunk like this:

<?xml version="1.0" encoding="utf-8"?><configuration>    <startup>      <supportedRuntime version="v4.0.30319" />    </startup></configuration>


原创粉丝点击