编译我的CSharp Mono应用程序时遇到问题。单声道编译错误 - 无法从程序集“系统”加载类型'System.Runtime.CompilerServices.ReferenceAssemblyAttribute'
我的单声道版本是2.10.2
这是我在组装/home/tmc/AcctTerm/System.dll,类型System.Runtime接收
失踪方法.ctor错误。 CompilerServices.ReferenceAssemblyAttribute 找不到定制ATTR构造函数图像:/home/tmc/AcctTerm/System.dll mtoken:0x0a000054
未处理的异常:System.TypeLoadException:无法加载类型System.Runtime.CompilerServices.ReferenceAssemblyAttribute“从集会'Sy干'。 在conAccountTerminator.cjcAccountTerminator..ctor()[0x00000]在:0 在conAccountTerminator.MainClass.Main(System.String []参数)[0x00000]在:0
任何想法?
编辑:添加代码;
using System;
using System.Net;
using System.Collections;
using System.Web;
using System.Text;
using System.IO;
using MySql;
using MySql.Data;
using MySql.Data.MySqlClient;
using System.Security;
using System.Security.Authentication;
using System.Net.Security;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Data;
using System.Xml;
namespace conAccountTerminator
{
class MainClass
{
public static void Main(string[] args)
{
cjcAccountTerminator cjcAccountTerm = new cjcAccountTerminator();
switch (args[0])
{
case "update":
cjcAccountTerm.LoginToMyBilling();
break;
case "notepad":
cjcAccountTerm.UpdateCustomerData(args[1], args[2]);
break;
case "terminate":
cjcAccountTerm.TerminateAccount(args[1]);
break;
}
}
}
}
你有任何可以分享的代码吗?它看起来像一个不带构造函数的自定义属性。 – Coder2000 2012-01-15 20:39:55
那里有一些有趣的路径,你有一个单声道安装在/ home/tmc/AccTerm?看起来像System.dll的一个奇怪的地方 – IanNorton 2012-01-15 21:15:32