1
我有这个小的应用程序从一个book复制:如何解决JScript.NET程序集引用错误JS1259?
import System;
import System.Drawing;
import System.Windows.Forms;
public class BasicForm extends Form
{
public function BasicForm()
{
InitializeComponent();
}
private function InitializeComponent() : void
{
this.Text = "Basic Windows Forms";
this.Height = 400;
this.Width = 500;
this.WindowState = FormWindowState.Normal;
this.StartPosition = FormStartPosition.CenterScreen;
}
public STAThreadAttribute() static function Main(Args:String[]) : void
{
Application.Run(new BasicForm());
}
}
BasicForm.Main(Environment.GetCommandLineArgs());
当我试着使用JSC编译它,我得到这个错误:
error JS1259: A referenced assembly depends on another assembly that is not referenced or could not be found
是什么造成这个错误,我怎么能解决它?