概要混合モードアセンブリ(managedとunmanagedのコードを両方含んだアセンブリ)の場合に発生するエラーに対処するための方法を掲載致します。
対象Microsoft Visual C# 2010 Express
エラー内容
混合モードアセンブリの場合、構成情報を追加しなければ、実行時に下記エラーが発生します。
対応方法「app.config」を下記に書き換えます。
<? xml version = " 1.0 " encoding = " utf-8 " ?>
< configuration >
< startup useLegacyV2RuntimeActivationPolicy = " true " >
< supportedRuntime version = " v4.0 " />
</ startup >
</ configuration >
|
Selection | File type icon | File name | Description | Size | Revision | Time | User |
|