写了一个很简单的类库ClassLibraryTest,只有一个类testclass(),生产成功后并做了测试,没有问题。using System;
using System.Collections.Generic;
using System.Text;namespace ClassLibraryTest
{
    public class testclass
    {
        public testclass()
        { }        public string GetString(string strInput)
        {
            return strInput + DateTime.Now.ToShortDateString();
        }
    }
}用maxtocode 2007v3.21版加密,只选了:加密程序代码,没有混淆。加密后将加密的dll文件和MRuntime3.dll复制到测试项目的bin目录下并添加对ClassLibraryTest的引用,运行是出现:“System.BadImageFormatException: IL 格式不正确。”的问题,改如何解决啊?
我的framework是2.0.50727版本的,机器上没有安装framework1.1版本的,用GetOsVersion查看的时候操作系统和framework的版本通过了,framework1.1没有安装,显示not support,不知道这个是否有影响