写这篇文章的目的就是要告诉你,趁早放弃SharpDevelop,别在它上面浪费时间!
1.不支持64bit程序的调试。
在项目名称上右键>属性>生成>目标CPU里面,只有设成Any processor (prefer 32-bit)或32位Intel兼容处理器,才能进行调试。
如果设成Any processor (prefer 64-bit)或AMD/Intel 64位处理器,就会提示“不能启动进程。不支持该请求。(Exception from HRESULT: 0x80070032)
64-bit debugging is not supported. Please set Project -> Project Options... -> Compiling -> Target CPU to 32bit.”
如果设成Intel64位处理器,就会提示“不能启动进程。不是有效的 Win32 应用程序。 (Exception from HRESULT: 0x800700C1)”.
2.界面容易变花。
下面这段代码会有运行时错误
using System;
namespace t1
{
class Program
{
public static void Main(string[] args)
{
int a=12;
Console.WriteLine("{a}",a); //这一行有错误
Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
}
}
}
未处理的异常,抛出了类型为System.FormatException