这是不是安装的问题?
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace HelloWorldVS
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(292, 273);
this.Name = "Form1";
this.Text = "Class1";
}
#endregion
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Console.Write("Hello, World from Visual Studio");
String str = Console.ReadLine();
}
}
}
出现的问题如下:
“DefaultDomain”:已加载“c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll”,未加载符号。
“HelloWorldVS”:已加载“C:\Documents and Settings\Pastoral\My Documents\Visual Studio Projects\HelloWorldVS\bin\Debug\HelloWorldVS.exe”,符号已加载。
“HelloWorldVS.exe”:已加载“c:\winnt\assembly\gac\system.windows.forms\1.0.3300.0__b77a5c561934e089\system.windows.forms.dll”,未加载符号。
“HelloWorldVS.exe”:已加载“c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll”,未加载符号。
“HelloWorldVS.exe”:已加载“c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll”,未加载符号。
Hello, World from Visual Studio程序“[1144] HelloWorldVS.exe”已退出,返回值为 0 (0x0)。
请问怎么解决?
c:\winnt\assembly\gac\根本就没有,相应的程序都在c:\winnt\Microsoft.Net\Framework\v1.0.3705;下。怎么解决?