编码器4 SDK PowerShell模块 [英] Encoder 4 SDK PowerShell module

查看:76
本文介绍了编码器4 SDK PowerShell模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的是第一个注意到,因为Encoder 4需要.NET 4,并且标准的PowerShell主机都绑定到.NET 2,所以SDK中包含的模块通常不是很有用吗?

Am I really the first person to notice that since Encoder 4 requires .NET 4, and the standard PowerShell hosts are all bound to .NET 2, the module included in the SDK is not generally useful?

使用VS2010构建的示例很好,它将模块DLL安装在正确的位置,但是示例脚本无法尝试"Import-Module ExpressionEncoder"。出现以下错误:

The sample builds fine with VS2010, it installs the module DLL in the correct place, but the sample script fails attempting to "Import-Module ExpressionEncoder" with the following error:

Import-Module:无法加载文件或程序集'[...] \ExpressionEncoder.dll'或其依赖项之一。这个程序集是由比当前加载的运行时更新的运行时构建的,无法加载。

Import-Module : Could not load file or assembly '[...]\ExpressionEncoder.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

我现在通过构建绑定到v4运行时的自己的主机解决了这个问题,  但对于许多用例来说,这不是一个普遍令人满意的解决方案。

I've worked around the problem for now by building my own host that's bound to the v4 runtime, but this is not a generally satisfactory solution for many use-cases.

推荐答案

感谢您的报告。我会请某人调查一下。

问候郎
Dean。
Thanks for the report. I'll ask someone to look into it.
Regards
Dean.


这篇关于编码器4 SDK PowerShell模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆