I have the following very short bit of code that I've written in VS 2005 Express:
When I try to run it, i get the following error:
error CS0012: The type 'System.ComponentModel.IComponent' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Anyone know what I'm doing wrong? Google hasn't been very helpful, and I'm new to VS so deciphering this one is proving tricky.
Code:
using System;
using System.Windows.Forms;
namespace Tutorials.UsingAForm
{
public class AForm : Form
{
static void Main()
{
System.Console.WriteLine("Wheee");
}
}
}
When I try to run it, i get the following error:
error CS0012: The type 'System.ComponentModel.IComponent' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Anyone know what I'm doing wrong? Google hasn't been very helpful, and I'm new to VS so deciphering this one is proving tricky.