且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在wpf中使用DirectX组件的问题

更新时间:2023-02-21 08:52:16

如果您还没有app.config文件,请将其添加到项目中。在此文件中,您需要添加:
Add an app.config file to your project if you don't have one already in place. In this file, you need to add:
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true" />
</configuration>

这告诉.NET 4允许混合模式 [ ^ ] CLR 2程序集。

This tells .NET 4 to allow Mixed Mode[^] CLR 2 assemblies.