混合模式组件内置于version“V1.1.4322”组件、模式、version

2023-09-09 21:02:40 作者:-凉薄少年葬空城*

我已经包含了DirectX的球员在C#.NET 4.0的应用程序,这里包含(answer2)。问题是,当我尝试初始化对象(即播放器MPlayer的=新播放器())出现此错误:

i've included a directX player in c# .net 4.0 app that is included here ( answer2 ) . The problem is that when i try to initialize the object ( i.e. Player mPlayer=new Player()) this error occurs :

混合模式组件构建针对运行时的版本V1.1.4322',不能在4.0运行时无需附加配置信息加载。

Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

任何人都知道它可以吗?

Anyone knows what it can be?

推荐答案

您需要添加一个app.config文件,并设置useLegacyV2RuntimeActivationPolicy为true。

You need to add an app.Config file and set useLegacyV2RuntimeActivationPolicy to true.

这是需要使用混合模式CLR 2集在.NET 4的应用程序。

This is required to use mixed mode CLR 2 assemblies in a .NET 4 application.